| 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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.