LLVM toolchain compiler change

Hi!
I’m using project template from LLVM library (http://llvm.org/docs/Projects.html).
while compiling (executing ‘make’ in build directory of my custom project) it uses clang and gives me several errors. While using clang++ or g++ it works. The question is - how can I change these makefile config files, to enable generatoing of makefile that will use the ++ version of compilers.

Thank you :slight_smile:

Hi Wojciech,

I'm using project template from LLVM library (http://llvm.org/docs/Projects.html).
while compiling (executing 'make' in build directory of my custom project) it
uses clang and gives me several errors. While using clang++ or g++ it works. The
question is - how can I change these makefile config files, to enable
generatoing of makefile that will use the ++ version of compilers.

maybe your files are named wrong? If they end in .cpp they should be compiled
as C++ files automatically.

Ciao, Duncan.

Oh, you’re right. I’m sorry, I was for the first time using gnu autotools and I tought I have to specify it somehow in makefiles.

2012/11/8 Duncan Sands <baldrick@free.fr>