Mail Archives: djgpp/1998/07/15/03:45:27
On Tue, 14 Jul 1998, Aaron Walker wrote:
> I included some header files that I conjured up to go with an app I'm
> working on and put it in the same directory as the source. When I try
> to compile, gcc spits out that it can't find the header files. Do they
> have to be in the djgpp\include directory to work?
If you include them with #include "foo.h", then the compiler looks in the
current directory first, then in djgpp\include. If you say
#include <foo.h>, it doesn't look in the currect directory, but you can
force it to do so by adding -I. to the GCC compilation command.
- Raw text -