I have installed Clang by using apt-get in Ubuntu, and I can successfully compile C files using it. However, I have no idea how to compile C++ through it. What do I need to
Also, for posterity -- Clang (like GCC) accepts the -x switch to set the language of the input files, for example,
-x
$ clang -x c++ some_random_file.txt
This mailing list thread explains the difference between clang and clang++ well: Difference between clang and clang++
clang
clang++