Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2008 14:43:25 -0400
From:      Eduardo Cerejo <ejcerejo@optonline.net>
To:        FreeBSD-questions@FreeBSD.org
Subject:   How do I add search paths to gcc
Message-ID:  <20080321144325.b13e5236.ejcerejo@optonline.net>

next in thread | raw e-mail | index | archive | help
My gcc is only looking in /usr/lib and /usr/include for libraries and hearders and I added the paths /usr/local/lib/ and /usr/local/include to my .cshrc file:

set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/local/lib /usr/local/include $HOME/bin)

but I still have to use gcc with -I and -L switch for a program to compile or else it will fail.  

I'm using tcsh.



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