Menu

#23 GeoIP C 1.4.8 on Windows

open
nobody
None
5
2014-07-15
2011-12-06
No

Has anyone successfully compiled GeoIP C 1.4.8 on Windows, either with MinGW or MS VC++? GeoIP.c and GeoIPCity.c both call pread() which apparently isn't available on Win32:

libtool: link: /usr/bin/amd64-mingw32msvc-gcc
-I/Development/geoip/zlib-1.2.5-amd64/include -o .libs/geoiplookup.exe
geoiplookup.o -L/Development/geoip/zlib-1.2.5-amd64/lib
../libGeoIP/.libs/libGeoIP.a -lws2_32
../libGeoIP/.libs/libGeoIP.a(GeoIP.o):GeoIP.c:(.text+0xddc): undefined
reference to `_pread'
../libGeoIP/.libs/libGeoIP.a(GeoIP.o):GeoIP.c:(.text+0x1150): undefined
reference to `_pread'
../libGeoIP/.libs/libGeoIP.a(GeoIP.o):GeoIP.c:(.text+0x1297): undefined
reference to `_pread'
../libGeoIP/.libs/libGeoIP.a(GeoIP.o):GeoIP.c:(.text+0x13b7): undefined
reference to `_pread'
../libGeoIP/.libs/libGeoIP.a(GeoIP.o):GeoIP.c:(.text+0x16f1): undefined
reference to `_pread'
../libGeoIP/.libs/libGeoIP.a(GeoIP.o):GeoIP.c:(.text+0x1c4f): more
undefined references to `_pread' follow

Discussion


Log in to post a comment.