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 header
>  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 newbie
>  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
-- 
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)

Attachment: pgpvbEXPsmQ7m.pgp
Description: PGP signature

Reply via email to