I'm having trouble getting clang++ to work as I compile my code. Specifically, I'm getting a make: clang++: Command not found error.
I've run sudo apt-get install llvm, and also sudo apt-get install build-essential and sudo apt-get update. What do I have to do to get clang++ installed?
3 Answers
Installing the llvm and build-essential packages, as you have done, does not cause clang or clang++ to be installed. For that, you must install one of the clang packages, depending on which version of clang and clang++ you want.
16.04
In Ubuntu 16.04, your options are clang-3.5, clang-3.6, clang-3.7, and clang-3.8.