Date: Sun, 24 Nov 2002 01:37:40 -0600 From: Kyle Martin <mkm@ieee.org> To: Khairil Yusof <kaeru@pd.jaring.my> Cc: freebsd-chat@freebsd.org Subject: Re: newbie question about make and include files Message-ID: <20021124073740.GB1450@marvin.bsdng.org> In-Reply-To: <1038119825.47127.115.camel@daemon.home> References: <1038119825.47127.115.camel@daemon.home>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 24, 2002 at 02:49:44PM +0800, Khairil Yusof wrote: > Subject: newbie question about make and include files > From: Khairil Yusof <kaeru@pd.jaring.my> > To: freebsd-chat@FreeBSD.ORG > Date: 24 Nov 2002 14:49:44 +0800 > > 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=pentiumpro -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 <ggi/ggi.h> > > 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? adding include directories can be done with -I, ie: -I/usr/local/include > 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 the library directorys can be specified just like the include directories, but with -L, ie -L/usr/local/lib -- Kyle Martin || mkm@IEEE.org || http://www.BSDng.org "Profanity is the only language all programmers understand." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021124073740.GB1450>