Can someone point to flags and setup changes required for one to compile C++0x code on a Eclipse CDT on mac please ?
To use C++0x in Eclipse CDT on OSX (in a managed make project):
- Open the project properties
- C/C++ Build
- Settings
- Change the "Command" field in "MacOS X C++ Linker" and in "GCC G++ Compiler" from g++ to c++ (before check that c++ is clang++ with "c++ --version" in a shell)
- Add "-std=c++0x -stdlib=libc++" in the "Miscellaneous" parameters of "GCC G++ Compiler"
- Add "-stdlib=libc++" in the MIscellaneous "Linker flags" parameters of "MacOS X C++ Linker"
- Open the "Discovery options", select the "GCC C++ compile" change g++ to c++ and add -std=c++0x to the "Compiler invocation arguments"
- Add "/usr/include/c++/v1" to the "includes" in "Paths and Symbols" in C/C++ General