Location of system headers
Alexandre Oliva
aoliva@redhat.com
Sun Jun 3 07:15:00 GMT 2001
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
More information about the Gcc-help
mailing list