getting c++11 - compliant compiler

后端 未结 3 1290
忘了有多久
忘了有多久 2020-12-29 10:12

This all seems like a colossal mess.
All I want is a compiler that implements C++11, so I can use . But I\'m so confused from the very beginni

3条回答
  •  失恋的感觉
    2020-12-29 10:55

    It sounds like you have Xcode 4.6 and the latest command line tools. This is from the release notes:

    Important: The LLVM GCC compiler does not include the latest Objective-C and 
    C++11 features. Xcode 4.6 is the last major Xcode release which includes the 
    LLVM GCC compiler and the GDB debugger. Please migrate your projects to use the 
    LLVM compiler and LLDB debugger…
    

    I think you want to use c++ instead:

    $ c++ -v
    Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
    Target: x86_64-apple-darwin12.2.0
    Thread model: posix
    

提交回复
热议问题