I have just compiled a simple hello world program using g++,
g++ -o hello hello.cpp
. I attempted to use the same command but invoking Clang as this is the new C++ compiler and it gives more helpful error messages. However, it outputs a stream of undefined reference messages. I can't reproduce them as my FreeBSD machine is not online. Why is this? Do I need to do special configuration to make Clang work?