[CMake] String error Cmake
Andreas Pakulat
apaku at gmx.de
Tue Apr 3 14:37:08 EDT 2012
On 03.04.12 14:26:01, Mauricio Klein wrote:
> Hello fellows!
>
> I'm compiling my code using CMake and i'm receiving a linker error like
> this:
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >
When you get errors, post the complete error message and not just a
part. The above is completely useless.
> After few researches on the internet, i realized that this kind of error
> occurs when compiling a C++ code with GCC, instead G++.
>
> My question is: how can i force CMake to use G++ as default compiler?
CMake already does this when you feed it c++ sources. So check you
project wether you maybe disabled C++ support, or wether you maybe have
C++ code in .c files.
Andreas
More information about the CMake
mailing list