From owner-freebsd-questions Mon Dec 24 19:37:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cx2037703-a.kenner1.la.home.com (cx2037703-a.kenner1.la.home.com [24.39.27.145]) by hub.freebsd.org (Postfix) with ESMTP id B0E5A37B417 for ; Mon, 24 Dec 2001 19:37:45 -0800 (PST) Received: (from conrads@localhost) by cx2037703-a.kenner1.la.home.com (8.11.6/8.11.6) id fBP3amU71082; Mon, 24 Dec 2001 21:36:48 -0600 (CST) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5.1 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3C27A45A.44750AF6@uber.com.br> Date: Mon, 24 Dec 2001 21:36:48 -0600 (CST) Organization: @Home Network From: Conrad Sabatier To: =?iso-8859-1?Q?Jos=E9?= Romildo Malaquias Subject: Re: [newbie] C compiler not finding headers and libs in /usr/loc Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 24-Dec-2001 José Romildo Malaquias wrote: > Hello. > > I have recently make a fresh install of FreeBSD 4.4 on my PC computer. > Although most packages get installed in /usr/local, Surprisingly I have > found out that the GNU C compiler is not able, by default, to locate > header files in /usr/local/include, and library files in /usr/local/lib. No, the C compiler doesn't look for includes under /usr/local by default, and it shouldn't. > Is this the expected behaviour? What is the best way of fixing it? Yes, this is the correct and expected behavior. There's really nothing to "fix" per se. If you mean "how can I get the compiler to use includes under /usr/local", then all you need is to add some "-I/usr/local/include" switches in your Makefiles. > I noticed the problem when bulding xemacs-21.4.6 yesterday, because > its configure script was not able to find the PNG library, although > it is there. Are you using the ports collection to do this, or building it yourself? If you haven't tried using the ports, do yourself a favor and learn what they're all about. -- Conrad Sabatier The sum of the Universe is zero. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message