ade at FreeBSD.org
Mon Mar 5 18:46:03 UTC 2012
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.
More information about the freebsd-ports