Can't use C++ linked to Cube Code generation
I am writing C++ projects using STMCubeIDE and running into a problem when using classes or other C++ features.
Even when choosing that the project be a C++ project, I can't build the code. Manually changing the file extensions to .cpp makes the code compile, but then breaks the link to generating code with STMCube. If I want to make changes to my pinout configuration I have to manually change the file names back to .c and then build the code, then manually change back to .cpp.
Is there a better way to do this?