[CMake] String error Cmake

Mauricio Klein mauricio.klein.msk at gmail.com
Tue Apr 3 13:26:01 EDT 2012


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> >

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?

Thanks in advance.

-- 
Best regards,

Maurício Souza Klein.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120403/9799b570/attachment.htm>


More information about the CMake mailing list