editing the search path for '#include' preprocessor
Roland Smith
rsmith at xs4all.nl
Wed Jun 27 15:38:31 UTC 2007
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070627/dd9623be/attachment.pgp
More information about the freebsd-questions
mailing list