Hello,
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?
Any ideas?
Thanks!
It's not that I want to....the code is not written by me originally. I am just trying to port it from MSVC to gcc, and I'd wanted to avoid changing all those headers.
Mhm...since you're under *nix maybe you could symlink the /header folder into itself ?? All header files should find themself then in a pseudo subfolder?!
e.g. ln -s . include
(replace include with whatever path your headers included)