ADDING TO GCC'S INCLUDE SEARCH PATHS?

Steve Holmes steve at holmesgrown.com
Fri Oct 18 07:53:23 EDT 2002


I did some looking around in the info pages for the gcc compiler and
didn't find a whole lot but I did find mention of variables that can
be configured at compile time (that is, compilation of the compiler).
LOCAL-INCLUDE-PATH GCC-INCLUDE-PATH SYSTEM-INCLUDE-PATH are what I
think you need to play with.  Actually, the dashes should be
underscores.  But you can always use the -I directive to add
additional include directories but that would have to be done for each
compile.

HTH.

On Thu, Oct 17, 2002 at 09:42:30AM -0700, Tyler Spivey wrote:
> hello. this one is easy.
> i forgot the case, but tru adding:
> -i/path/to/include -i/path/to/more/includes
> to your gcc compilation command line.
> it might be a capital i, i'm not sure, i don't have access to gcc currently
> to test it.
> 
> ----- Original Message -----
> From: Doug Lawlor <dlawlor at roadrunner.nf.net>
> To: <speakup at braille.uwo.ca>
> Sent: Thursday, October 17, 2002 7:52 AM
> Subject: ADDING TO GCC'S INCLUDE SEARCH PATHS?
> 
> 
> >
> > Hello list, I need to know how I go about adding to the search paths
> > where gcc looks for include files.  As far as I can tell it currently
> > looks in '/usr/include' and '/usr/local/include'.  I would also like to
> > have the compiler look in '/opt/gnome/include' and '/opt/kde/include'.
> > How do I make this happen?
> >
> > Thanks in advance,
> >
> > Doug
> >
> > --
> > Make sure your E-mail can be read by everyone!
> > http://www.betips.net/etc/evilmail.html
> >
> > Doug Lawlor <dlawlor at roadrunner.nf.net>
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
Please avoid sending me Word or PowerPoint attachments.
   See http://www.fsf.org/philosophy/no-word-attachments.html




More information about the Speakup mailing list