From owner-freebsd-questions@FreeBSD.ORG Fri Mar 21 18:43:27 2008 Return-Path: Delivered-To: FreeBSD-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D7551065671 for ; Fri, 21 Mar 2008 18:43:27 +0000 (UTC) (envelope-from ejcerejo@optonline.net) Received: from mta1.srv.hcvlny.cv.net (mta1.srv.hcvlny.cv.net [167.206.4.196]) by mx1.freebsd.org (Postfix) with ESMTP id D47018FC17 for ; Fri, 21 Mar 2008 18:43:26 +0000 (UTC) (envelope-from ejcerejo@optonline.net) Received: from localhost (ool-44c03822.dyn.optonline.net [68.192.56.34]) by mta1.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with SMTP id <0JY300NHBG0D55B0@mta1.srv.hcvlny.cv.net> for FreeBSD-questions@FreeBSD.org; Fri, 21 Mar 2008 14:43:26 -0400 (EDT) Date: Fri, 21 Mar 2008 14:43:25 -0400 From: Eduardo Cerejo To: FreeBSD-questions@FreeBSD.org Message-id: <20080321144325.b13e5236.ejcerejo@optonline.net> MIME-version: 1.0 X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Cc: Subject: How do I add search paths to gcc 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: Fri, 21 Mar 2008 18:43:27 -0000 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.