cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX code generation switches project from C++ to C causing build and linker errors

spaceDog16
Associate

My projects are all in C++ and were building completely fine. After I generated the code from CubeMX, the language switched back to C. I had to go and manually switch to C++, then it gave me build errors with linker script... Please fix!

1 ACCEPTED SOLUTION

Accepted Solutions
Souhaib MAZHOUD
ST Employee

Hello @spaceDog16 

Actually, this issue has been solved in the latest version of CubeMX 6.16.1, I suggest that you update your version of CubeMX and recheck.

BR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Souhaib MAZHOUD
ST Employee

Hello @spaceDog16 

Actually, this issue has been solved in the latest version of CubeMX 6.16.1, I suggest that you update your version of CubeMX and recheck.

BR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.