Hi,
I have been able to create a C STM32CubeMX based project and it runs great.
I would like now to add c++ code (e.g. classes).
I add a new header file with
#ifdef __cplusplus
extern “C” {
#endif
class MyClass { };
#ifdef __cplusplus
}
#endif
But I get an “unknown type name ‘class'” errors.
I did not find any instruction how to start or configure the project as a c++ project.
Can it be done? Can you please assist.
Thanks,
Nahum.