From owner-freebsd-stable@FreeBSD.ORG Tue Jan 31 19:03:40 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EB8316A420 for ; Tue, 31 Jan 2006 19:03:40 +0000 (GMT) (envelope-from pkrisada@ego.co.th) Received: from smtp-03.mail.isp.net.th (smtp-03.mail.isp.net.th [202.5.93.212]) by mx1.FreeBSD.org (Postfix) with SMTP id 3FB8643D4C for ; Tue, 31 Jan 2006 19:03:38 +0000 (GMT) (envelope-from pkrisada@ego.co.th) Received: (qmail 22971 invoked by uid 88); 31 Jan 2006 19:03:37 -0000 Received: from 203.107.196.243 by SMTP-03 (envelope-from , uid 91) with qmail-scanner-1.25 (clamdscan: 0.88/1263. uvscan: v4.4.00/v4685. Clear:RC:1(203.107.196.243):. Processed in 0.457684 secs); 31 Jan 2006 19:03:37 -0000 Received: from unknown (HELO localhost) (pkrisada@ego.co.th@203.107.196.243) by 202.5.93.197.rev-ip.isp-thailand.com with SMTP; 31 Jan 2006 19:03:36 -0000 Date: Wed, 1 Feb 2006 02:06:17 +0700 From: pongthep To: freebsd-stable@freebsd.org Message-ID: <20060131190617.GA641@ego.co.th> Mail-Followup-To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Re: GCC not searching /usr/local/include X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 19:03:40 -0000 What is the main difference between them, in brief? I only use /usr/include and I've never used /usr/local/include. thanks, pongthep > On Mon, Jan 30, 2006 at 07:56:55PM -0600, Michael Ekstrand wrote: > > I'm having a little problem with compiling programs. > > > > It seems that gcc does not search /usr/local/include for headers by > > default; I have to specify -I/usr/local/include. It seems to me that it > > should. > > > > So: > > > > Should gcc be searching /usr/local/include by default? > > No, if you want to look for third-party headers you need to point the > compiler there yourself. > > Kris