1 | initial version |
You're using the wrong syntax to compile C++ code with clang
. It should be:
clang++ -o hello hello.cpp
Or, if you really wish to use clang
directly instead of clang++
, something like:
clang -x c++ -lstdc++ -o hello hello.cpp