Atom-script: How to config it to support C++ 11?

Created on 31 Dec 2015  路  3Comments  路  Source: atom-community/atom-script

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

Most helpful comment

@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

All 3 comments

@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

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

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.

Was this page helpful?
0 / 5 - 0 ratings