🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42421

Re: Need help with <include> files

#42421
From: Manfred Hollstein
Date: Thu, 07 Dec 1995 00:00
42 lines
2143 bytes
In article <DJ6AEp.2v6.0.-s@inmet.camb.inmet.com>
  David Soto <soto@hous.inmet.com> writes:

> From: David Soto <soto@hous.inmet.com>
> Newsgroups: gnu.gcc.help
> Date: Wed, 6 Dec 1995 16:13:37 GMT
> Organization: Intermetrics, Inc.
> Sender: news@inmet.camb.inmet.com (USENET news)
> References: <christiaDJ318B.Iuo@netcom.com>
> Lines: 15
> 
> Subject: Need help with <include> files
> From: Christian E. Brown, christia@netcom.com
> Date: Mon, 4 Dec 1995 22:02:31 GMT
> In article <christiaDJ318B.Iuo@netcom.com> Christian E. Brown,
> christia@netcom.com writes:
> 
> >  Can anyone tell me how to get the include directory into the path
> >that the compiler searches for *.h files?
> 
> Look at LD_LIBRARY_PATH (environment variable) or manually add the
> libraries when compiling (eg., -I/usr/lib/include). I'd recommend
> setting LD_LIBRARY_PATH correctly. I would have guessed you had the
> /usr/lib entry already.
> 
> -ds

Sorry David,

LD_LIBRARY_PATH has nothing to do with <include> files; it directs the
shared linker ld.so where to look for shared libraries.  The only way
to tell a (normal) Unix compiler is to add -I/whereever/your/include/files/live
to the cc commandline.

Christian, you should try `man cc' or `man gcc'; it's all documented there -
perhaps you'll do that before posting stuff of this kind.

-- 
 Manfred Hollstein			SEL-Alcatel, Dept. KS/EF4A
 e-mail: manfred@lts.sel.alcatel.de	Lorenzstrasse 10
 Phone: +49 711 821 40283		70435 Stuttgart
 Fax:	+49 711 821 40196		Germany
Technical Details
Message-ID: <pog2exs1ro.fsf@slsvhmt.lts.sel.alcatel.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <christiaDJ318B.Iuo@netcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d8c3aea2715e7e66
X-Google-Attributes: gid11318c,public
From: manfred@slsvhmt.lts.sel.alcatel.de (Manfred Hollstein)
Subject: Re: Need help with <include> files
Date: 1995/12/07
Message-ID: <pog2exs1ro.fsf@slsvhmt.lts.sel.alcatel.de>
X-Deja-AN: 121483985
sender: manfred@slsvhmt.lts.sel.alcatel.de
references: <christiaDJ318B.Iuo@netcom.com>
content-type: text/plain; charset=ISO-8859-1
organization: SEL-Alcatel, Stuttgart, Germany.
mime-version: 1.0
reply-to: manfred@lts.sel.alcatel.de
newsgroups: gnu.gcc.help