PlatformIO Community

Including a file.h in your project

This is my structure as in enclosed picture, I have tried to read the other topics ,but i did not see a really good aswer how to fix this error code.

Off the top of my head… try including the folder name… i.e. #include "Machine\MachineOne.h" … I don’t think you need to use <> instead of "" in this case?

2 Likes

This is right.
The include folder is added to the include path of the project, not every sub-folder recursively. You should reference it as #include <Machine/MachineOne.h>.