So I have a bunch of source files that I want to use in my platformio project. I have been putting them all in lib/private_lib and my project runs fine. But I have like 50 files in that folder. The files are really source files so I moved them to the src/ folder. The graph below represents my basic file structure.
| | |- Bar.c
| | |- Bar.h
| | |- Foo.c
| | |- Foo.h //contains #include "Bar.h"
| | |- Main.cpp
So when I try to do platformio run it tells me that Bar.h does not exist. So platformio found Foo.h but then it couldn't go find bar.h.
How do i fix this?
Sorry if this question has been asked before, I couldn't find it.