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

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to