Hello fellows!<div><br></div><div>I&#39;m compiling my code using CMake and i&#39;m receiving a linker error like this:</div><div>std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;<br clear="all">

<div><br></div><div>After few researches on the internet, i realized that this kind of error occurs when compiling a C++ code with GCC, instead G++.</div><div><br></div><div>My question is: how can i force CMake to use G++ as default compiler?</div>

<div><br></div><div>Thanks in advance.</div><div><br></div>-- <br>Best regards,<br><br>Maurício Souza Klein.<br>
</div>