Mail Archives: djgpp/1999/05/06/06:58:14
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 -