C++ Project for System Workbench
Thanks. This workaround allows me to compile.
Nevertheless, I had to redefine the include paths (included the ones of the HAL driver) and the preprocessor options "USE_HAL_DRIVER" and "STM32F401xE" (in my case) via the following path(C/C++ General -> Paths and Symbols -> Symbols-> Gnu C++.