delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/06/06:58:14

Date: Thu, 6 May 1999 13:54:42 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Sunil V <sunilv AT accord-soft DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Include directories option
In-Reply-To: <37316979.3A6C3E40@accord-soft.com>
Message-ID: <Pine.SUN.3.91.990506134927.15114E-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 Thu, 6 May 1999, Sunil V wrote:

> I'm using -I option to specify the include directories while compiling
> thro' gcc. Since I have to include more number of directories, is there
> any way to put these directory names into a file and then make gcc read
> from them, much like the -imacros option.

You can use the response file feature (all DJGPP programs support it), 
like this:

	gcc -c foo.c @includes.list

Where the file `includes.list' names all the -I switches separated by 
whitespace (blanks or newlines).

This is all described in the FAQ, btw (section 16.4).

You can also set the environment variable C_INCLUDE_PATH to the list of 
the directories separated by semi-colons; then you don't need the -I 
switches at all.  (This environment variable is described in the GCC 
documentation, which see.)

- Raw text -


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