This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Location of system headers


On Jun  3, 2001, Soubhik Bhattacharya <soubhik@cse.iitk.ac.in> wrote:

> i've gcc 2.93.3 installed in my i586-mandrake-linux system. how do i know
> what are the locations searched by gcc for system headers?

gcc -E -v -

will print the directories searched by default.

> also, is there a way to change it (not for a particular invokation
> of gcc but permanently, ie to affect all the subsequent
> invokations)?

You can always install a wrapper script that passes -I/-isystem
/additional/path to gcc, or modify the specs file that GCC uses to
determine the flags passed to cpp and cc1.

You can also set the GCC_EXEC_PREFIX environment variable to add to
the default search list.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]