C++ project but unable to use C++ code
Hello, I have created a C++ project with CubeMx / CubeIDE. It generates the code as main.c, I have seen other post about changing the file extension each time you generate code to .cpp and I have tried that but then I get an "undefined reference to `MX_FREERTOS_Init()" error. I can then change app_freertos to a .cpp file but that creates more errors.
If I leave the file extensions of main and app_freertos as .c everything will compile and run but I then run into an issue of including a library I wrote in C++ that uses a class. I have a class defined in my header file but it wont compile..."unknown type name 'class'".
