Forum: System Workbench for STM32

New created .h files cannot be found

Hi,

1- I have imported a CubMx project and it works fine.
2- Now I created a folder called “Inc” and I have created a file under it called “myh.h”
3- In the main.c I added -> #include “myh.h”

Now I keep getting error “No such directory of file myh.h” !
it seems like the AC6 does not see the newly created files!

Any help?

Add all your directories with *.h files to Settings -> C/C++ Build -> Tool Settings -> MCU GCC Compiler -> Includes -> Include paths