First time here? Check out the FAQ!
answered 6 years ago
You're using the wrong syntax to compile C++ code with clang. It should be:
clang
clang++ -o hello hello.cpp
Or, if you really wish to use clang directly instead of clang++, something like:
clang++
clang -x c++ -lstdc++ -o hello hello.cpp