Skip to main content
PPoob.1
Associate II
December 28, 2020
Solved

Unable to include c++ libraries in STM32CubeIDE

  • December 28, 2020
  • 4 replies
  • 5107 views

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

This topic has been closed for replies.
Best answer by TDK
Rename the file.

4 replies

TDK
December 28, 2020

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
PPoob.1Author
Associate II
December 29, 2020

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

TDK
TDKBest answer
December 29, 2020
Rename the file.
"If you feel a post has answered your question, please click ""Accept as Solution""."