Tuesday, 15 May 2012

c++ - SublimeClang OSX Mountain Lion C++11 -


Has anyone been instructed to work with SublimeClang in C ++ 11 under OS X Mountain Lion?

If I use non-C ++ 11 lbs and code then it's happy, but as soon as I try to use something like std :: shared_ptr

I'm clearly missing something simple and no help

I have also set an additional option for -std = c ++ 11 so I really do not know that I what is missing.

Blair

The following configuration is working for me on OS X 10.9 Mavericks

  1. A work compilation with OS X provided clang ++ on the command line Adding the -v command line option to get a list of systems uses the included directories. These were for me: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/Applications/Xcode.app/Contents/Developer/Toolchains/ XcodeDefault.xctoolchain / usr / bin /../ lib / clang / 5.0 / include / applications / Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include

  2. SublimeClang includes its own files by default, which was old on my system Set this preference for SublimeClang: "dont_prepend_clang_includes": true

  3. Enable C ++ in SublimeClang Language options: "additional_language_options": {"c ++": ["--std = c + + 11"]} < / Li>

No comments:

Post a Comment