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 -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake