cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to include c++ libraries in STM32CubeIDE

PPoob.1
Associate III

Hi

I am trying to include the standard C++ libraries in my STM32CubeIDE code, however I am getting an "Unresolved inclusion" Error.

0693W000006H067QAC.jpg 

This project is configured as a C++ program, as the project drop down menu only allows me to convert this project to a C program - which implies that the current project is configured as a C++ project. e.g.

0693W000006H09zQAC.jpg 

Is anyone familiar with this issue and know how to resolve this ?

a swift reply is much appreciated :)

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Rename the file.
If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

4 REPLIES 4
TDK
Guru

Is the filename you're editing a C (*.c) or C++ (*.cpp) file? Needs to be *.cpp to include C++ headers.

If you feel a post has answered your question, please click "Accept as Solution".
PPoob.1
Associate III

it is a .c file , any ideas on how to convert this file to a .cpp ? Or am is my only option to create a new cpp project, and copy over the code. Thanks

Rename the file.
If you feel a post has answered your question, please click "Accept as Solution".

Yup , the problem is solved now thanks for the quick and accurate support