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
As you found, g++ does not support those command line options.
It sounds like you're using Xcode.
For clang, you should look at the project settings, and make sure that the "Deployment Target" is set to 10.7 (or 10.8)
What the error message is telling you is that libc++ is not available for 10.6 and before.