Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2007 17:38:30 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        sameer gupta <sameersmail@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: editing the search path for '#include' preprocessor
Message-ID:  <20070627153830.GC71331@slackbox.xs4all.nl>
In-Reply-To: <6c4fb2280706270305i4543c1fbu29a014c645c4cee0@mail.gmail.com>
References:  <6c4fb2280706270305i4543c1fbu29a014c645c4cee0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--qtZFehHsKgwS5rPz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jun 27, 2007 at 03:35:46PM +0530, sameer gupta wrote:
>  hello,
>  i want to add new search path's for including  more directories for head=
er
>  files, for that i need to edit the makefile that my gcc compiler uses,
>  however i cant figure out where to find that file, kindly help..i'm a ne=
wbie
>  who has just started out

You can set environment variables to help GCC find include files and
libraries in your shell's startup script. For include files you can set
CPATH, for libraries you'll need to set LIBRARY_PATH. See
http://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html

Both can contain different paths separated by a colon (:).

How to set environment variables depends on the shell you use. csh uses
the 'set' command, while sh and bash use 'export'. See your shell's
manual page for details.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--qtZFehHsKgwS5rPz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFGgoR2EnfvsMMhpyURArFOAKCGErR0ttfzkChtJ30MAI2hAR84jQCcDtXQ
sEWlnVdp9zYw8OKKifGkHXU=
=v1g/
-----END PGP SIGNATURE-----

--qtZFehHsKgwS5rPz--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070627153830.GC71331>