How do I compile C++ with Clang?

pythonic picture pythonic · Feb 5, 2012 · Viewed 120.3k times · Source

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 do to compile C++?

Answer

adl picture adl · Feb 5, 2012

The command clang is for C, and the command clang++ is for C++.