cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to switch to g++ linker.

LeventF16
Associate II

Hello.

We need to use g++ linker in our project.

But after setting g++ linker in Project->Properties->C/C++Build->Settings->MCU G++ Linker to g++ again ld.exe is invoked.

Would you please advice.

Thank you.

3 REPLIES 3
Pavel A.
Evangelist III

In Project explorer, right click on the project. Select Convert to C++.

 

It is already in C++.

"In the GCC toolchain, both C and C++ use the same linker, which is the ld linker. However, when linking C++ programs, the g++ driver is typically used instead of gcc. The g++ driver automatically links against the C++ standard library and handles other C++ specific linking requirements, but it still uses the ld linker under the hood"

https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html