I am trying to compile the following C++ program which relies on the C++11 header. I am trying to do this on OSX Lion.
#include &
You need to use libc++ instead of libstdc++.
clang++ -std=c++11 -stdlib=libc++ foo.cc