From owner-freebsd-chat Sat Nov 23 22:50:26 2002 Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 191C937B401 for ; Sat, 23 Nov 2002 22:50:25 -0800 (PST) Received: from smtp7.jaring.my (smtp7.jaring.my [61.6.32.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BE9143EAA for ; Sat, 23 Nov 2002 22:50:23 -0800 (PST) (envelope-from kaeru@pd.jaring.my) Received: from [61.6.121.111] (j97.crc32.jaring.my [61.6.121.111]) by smtp7.jaring.my (8.11.4/8.11.4) with ESMTP id gAO6o6717652 for ; Sun, 24 Nov 2002 14:50:08 +0800 (MYT) Subject: newbie question about make and include files From: Khairil Yusof To: freebsd-chat@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-/jQwU17OAUTOYolYcHCz" Organization: Message-Id: <1038119825.47127.115.camel@daemon.home> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 24 Nov 2002 14:49:44 +0800 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=-/jQwU17OAUTOYolYcHCz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Not sure if this is the right place to ask, if not please point me in the right direction. I've been trying to compile some small programs but I come across errors with include headers: $gcc -s -O3 -funroll-loops -fomit-frame-pointer -mpentium -O2 -pipe -march=3Dpentiumpro -c intro.c -lggi In file included from intro.c:24: intro.h:25: ggi.h: No such file or directory intro.h has: #include I have the required files (ggi.h) at: /usr/local/include/ggi but that isn't included (only /usr/include) where do I set this variable?=20 Playing around a symlink in usr/include confirms my hunch that /usr/local/include isn't being included. after that I get this: /usr/libexec/elf/ld: cannot find -lggi After reading man 1 gcc, I see that it's trying to link to the ggi library. Again this is in /usr/local/lib not /usr/lib I couldn't find anything in the developers handbook or porters handbook about these settings. Where can I read up more on them? Any pointers would be much appreciated. --=20 Khairil Yusof --=-/jQwU17OAUTOYolYcHCz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA94HORDAqnLW/+/X8RApsIAJ9VQiILpkHzRqK4za43TFzF8IfNwgCguJkG fY4m3wmtdNcHRCT4COFkjv0= =OTii -----END PGP SIGNATURE----- --=-/jQwU17OAUTOYolYcHCz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message