How to exclude a single file from being build with a specific compiler/language in STM32CubeIDE?
I'm having trouble compiling a TouchGFX project in STM32CubeIDE.
As I need to call a C++ function (touchgfx::OSWrappers::signalVSync()) from inside a .c file (app_azure_rtos.c) I created a C++-linker function as described in this thread.
Also as described in aboves thread I'm getting an error when compiling. The Error says
../Middlewares/ST/touchgfx/framework/include/touchgfx/hal/OSWrappers.hpp:23:1: error: unknown type name 'namespace'
23 | namespace touchgfxSo it seems that the C-Compiler tries to compile a .hpp header file.
How can I tell the C-Compiler to exclude a single file from being build? I can exclude a whole directory . But this makes the whole directory (all files included) unavailable for all compilers/languages. I'm on STM32CubeIDE 1.12.0