From: Bill Bouma Newsgroups: comp.os.msdos.djgpp Subject: Include files must be below compiling directory? Date: Thu, 12 Feb 1998 17:35:12 -0800 Organization: AT&T Labs Lines: 31 Message-ID: <34E3A350.44FBD5C4@geoplex.com> NNTP-Posting-Host: geoplex.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I just installed djgpp 2.1 and am having some trouble getting it to find my header files. It is as though it is ignoring the -I option on the command line. For example: > gcc -I/src/templates -c v2d.cpp In file included from v2d.cpp:4: V2D.H: List.H: No such file or directory (ENOENT) ... However, if I move List.H into the same directory as v2d.cpp it compiles fine. Also if I move it to a directory below the current one and use -I./directory it works. The strangest thing is that both absolute an relative pathnames specified in the #include fails unless the file is in a directory below the current (compiling) one. For example: #include "../../templates/List.H" FAILS #include "./templates/List.H" SUCCEEDS This seems like an unnecessary and ridiculous restriction!? (Especially so, considering MSDOS doesn't have symbolic links.) I see nothing about this in the FAQ, so I must be the only one having trouble. How do you people get around this or put up with it? Definitely put this in the FAQ. People who are new to djgpp but are not new to programming are going to be confused and pissed off by this, as I am. Bill