www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/15/03:45:27

Date: Wed, 15 Jul 1998 10:44:37 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Aaron Walker <aaron AT iconmedia DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: using header file
In-Reply-To: <35AC0D31.CC3EFBDB@iconmedia.com>
Message-ID: <Pine.SUN.3.91.980715104240.10743V-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019