I installed Xcode 4.3 and want to test this C++11 program:
#include
int main()
{
}
However, it doesn\'t find the
Howard Hinnant's answer (with corrections) is the correct answer for the command line.
To use the new C++11 standard library inside of Xcode:
You need:
-std=c++0x
to select C++11. And you need:
-stdlib=libc++
to select libc++. By default, the std::lib that shipped with gcc 4.2 is used, which is pre-C++11.