Date: Thu, 6 May 1999 13:54:42 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Sunil V cc: djgpp AT delorie DOT com Subject: Re: Include directories option In-Reply-To: <37316979.3A6C3E40@accord-soft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.)