From owner-freebsd-questions@FreeBSD.ORG Wed Jun 27 15:38:31 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6CC216A421 for ; Wed, 27 Jun 2007 15:38:31 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id 60B9813C45D for ; Wed, 27 Jun 2007 15:38:31 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id l5RFcUBB067798; Wed, 27 Jun 2007 17:38:30 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 49FA9B829; Wed, 27 Jun 2007 17:38:30 +0200 (CEST) Date: Wed, 27 Jun 2007 17:38:30 +0200 From: Roland Smith To: sameer gupta Message-ID: <20070627153830.GC71331@slackbox.xs4all.nl> Mail-Followup-To: sameer gupta , freebsd-questions@freebsd.org References: <6c4fb2280706270305i4543c1fbu29a014c645c4cee0@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qtZFehHsKgwS5rPz" Content-Disposition: inline In-Reply-To: <6c4fb2280706270305i4543c1fbu29a014c645c4cee0@mail.gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: editing the search path for '#include' preprocessor X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 15:38:31 -0000 --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--