I trying to compile a rather large project initially written and compiled with MSVC++ using g++ in Linux. Within the project I have a local include folder, which I specify in my Makefile as a "CFLAG=-I/path/to/include".
This works well, as long as the header files within the include folder don't use other header files living in the same include folder. When a header file from the include folder includes another header file from this same folder, I get this compile error (../../Include is the local include folder):
../../Include/headers/header_1.h:9:35: fatal error: headers/header_2.h: No such file or directory
If it found header_1.h why doesn't it find header_2.h, given that they are in the same folder?