Clang 3.1 + libc++ Compile Error
问题 I've built and installed (under the prefix ~/alt ) LLVM-Clang trunk (23 apr 2012) successfully using GCC-4.6 on Ubuntu 12.04 and in turn libc++ using this Clang-build. When I want to use it I have to supply both -lc++ and -libstdc++ as follows /home/per/alt/bin/clang -x c++ -I/home/per/alt/include/v1 -L/home/per/alt/lib -std=gnu++0x -g -Wall ~/f.cpp -lm -lc++ -lstdc++ -lpthread -o f to compile f.cpp containing #include <iostream> using std::cout; using std::endl; int main(int argc, const char