From owner-freebsd-questions@FreeBSD.ORG Wed Jun 27 13:11:08 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 9B4A116A421 for ; Wed, 27 Jun 2007 13:11:08 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id 7E49413C457 for ; Wed, 27 Jun 2007 13:11:08 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [172.18.0.137] (sky_cpfw-1.tulsatech.org [70.168.226.130]) by a.cs.okstate.edu (Postfix) with ESMTP id 92475A0793; Wed, 27 Jun 2007 08:11:07 -0500 (CDT) Message-ID: <468261E1.4000204@cs.okstate.edu> Date: Wed, 27 Jun 2007 08:10:57 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.0 (X11/20070615) MIME-Version: 1.0 To: sameer gupta References: <6c4fb2280706270305i4543c1fbu29a014c645c4cee0@mail.gmail.com> In-Reply-To: <6c4fb2280706270305i4543c1fbu29a014c645c4cee0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 13:11:08 -0000 Written by sameer gupta on 06/27/07 05:05>> > 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 > regards, > sameer If you're wanting to add system include paths permanently to gcc, AFAIK you'll have to edit /usr/src/contrib/gcc/cppdefaults.c and add the paths you want to the cpp_include_defaults array. However, cpp already has a non-invasive way of supplying extra include paths with the -I flag, or you can set the CPATH environemtn vairable to the paths you would like to search (its form is exactly like that of PATH).