Date: Mon, 05 Mar 2012 10:45:56 -0800 From: Ade Lovett <ade@FreeBSD.org> To: Norman Khine <norman@khine.net> Cc: freebsd-ports@freebsd.org Subject: Re: installing GeoIP Message-ID: <4F5509E4.4040808@FreeBSD.org> In-Reply-To: <CAKgQ7UJffa951O-k-LqA7E72eEPkQE3JwkZh%2Bom0-1Ky89EJ4Q@mail.gmail.com> References: <CAKgQ7UJogA3iH=XiFGz46NBLTdj-bet=Bv=CWuuQeYsr0rXeuQ@mail.gmail.com> <4F54FD0B.9070401@acsalaska.net> <CAKgQ7U%2BGRyR0L7hS4WMAgJRABFVe%2BGiy0hOsROEo3n807tqLPg@mail.gmail.com> <CAKgQ7UJffa951O-k-LqA7E72eEPkQE3JwkZh%2Bom0-1Ky89EJ4Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/5/2012 10:32, Norman Khine wrote: > when i run > > $ /usr/bin/ld -lGeoIP > /usr/bin/ld: cannot find -lGeoIP > > perhaps i have a problem with the settings of my location of the > headers in my linker path. > > how do i verify this? As has already been explained. -I/usr/local/include (to find the header(s)) and -L/usr/local/lib (to find the library) cc -I/usr/local/include -o example example.c -L/usr/local/lib -lGeoIP This is "Compilation of Stuff 101" -- it most likely isn't an issue on Linux, since there's a tendency to just stuff everything in /usr/include, /usr/lib and friends which will be poked at by the compiler by default. -aDe
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F5509E4.4040808>