I have Xcode 4.5.2 on Moutain Lion, and I have install the lastest \"Command Line Tools\" but when I tried to compile with g++ or clang++ (and the opti
g++
clang++
Try -std=c++0x if c++11 doesn't work. Support for the -std=c++11 option is relatively new in GCC and you might not have a recent enough version.
-std=c++0x
c++11
-std=c++11
I'd trust Marshall on the libc++ issue.