For a C++ project I have a folder structure like this:
- Makefile
- src/main.cpp
- include/parse.h
My issue comes from compiling. In my main.cpp I do:
#include parse.h
This then gives me an error to say it can't find "parse.h". Then I put in there:
#include include/parse.h
That doesn't work either, i guess because it's looking for src/include which doesn't exist. Is there a way I can simply put #include parse.h
and have it look for that folder, or alternatively what should I put on that line so it can be found?
EDIT: Sorry if my question wasn't clear. I changed the formatting a bit for clarify, but basically, yes it's an issue that I don't know how to specify the directory. It would be easy if all te code was in one dir, but since the include folder is on the same level on include I don't know how to specify.