Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to config it to support C++ 11? #712

Closed
ChenZhongPu opened this issue Dec 31, 2015 · 3 comments
Closed

How to config it to support C++ 11? #712

ChenZhongPu opened this issue Dec 31, 2015 · 3 comments

Comments

@ChenZhongPu
Copy link

As the title, how to config it to support C++ 11 code ?

@AriaFallah
Copy link

@ChenZhongPu

Go to ~/.atom/packages/script/lib/grammers.coffee

Go to the C++ section (ctrl-f c++):

Then change this line:

args: (context) -> ['-c', "xcrun clang++ -fcolor-diagnostics -Wc++11-extensions // other stuff

to this:

args: (context) -> ['-c', "xcrun clang++ -fcolor-diagnostics -std=c++11 -stdlib=libc++ // other stuff

basically add -std=c++11 -stdlib=libc++ and remove -Wc++11-extensions

@EntilZha
Copy link
Collaborator

Closing since there has been no response from issue author in more than a month, reopen if you still need help

@debashish05
Copy link

I am unable to find this directory "~/.atom/packages/script/lib/grammers.coffee" i am using windows.
it have no folder for script under package folder.Need help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants