delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/13/05:34:10

Date: Tue, 13 Apr 1999 12:32:31 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Tim Updegrove <tdu AT enter DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Missing header file
In-Reply-To: <3712a042.8670421@news.enter.net>
Message-ID: <Pine.SUN.3.91.990413123216.9045I-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 13 Apr 1999, Tim Updegrove wrote:

> Is there a simple way to keep the header files with the program
> files?

Yes, you need to include them like this:

     #include "foo.h"

rather then like this:

     #include <foo.h>

The latter instructs the compiler to look ONLY in the system include
directories; the former looks in the directory of the source file
first.

- Raw text -


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