Build failed on stmcube generated code with hundreds of unresolved references, Here is a fix
I generated code with stmcubemx and then double clicked .cproject so System Workbench for STM32 imported the project. I selected build all and had MANY errors. Mostly “cannot be resolved errors” that seem to trace to these two missing headers. Stdint.h and stdio.h were not being found. (discovered using project-c/c++ index-search for unresolved headers)
I went to project menu-properties -mcu gcc compiler-includes-add
to add the needed path C:\MinGW\include (on my computer.) This did not work initially as quotes were added automatically making the entry “C:\MinGW\include” so the path did not work.
I then used project menu-properties -mcu gcc compiler-includes -edit to remove the quotes.
Success! the project now compiled.
This could be because GCC was installed on my computer separately (previous) to system workbench. Hopefully this information may help others (and the extra added quotes problem may get addressed.)
Thanks for System Workbench stm32 keep up the good work!