Closed luhar closed 5 years ago
Hi,
I have reproduced this issue and am looking into it. In the meantime, we haven't tested this project using VS20017 and definitely recommend trying libmaxminddb instead.
I will try to get back to you early next week with more thoughts.
Any update?
Hi, no updates as yet; we have the similar libmaxminddb
issue in our issue tracker and that is more likely to get fixed more quickly. If you wish to take a crack at it yourself and file a PR we will be happy to take a look at it.
return code '0xc0000135'
This usually means The application failed to start (or some other MS vague reasoning).
What if you try to run under the debugger?. E.g. c:\xx\GeoIP-API-C\test> cdb benchmark
.
PS. I'm getting these results:
GeoIP Country
120000 lookups made in 2.310956 seconds
GeoIP Country with GEOIP_CHECK_CACHE
120000 lookups made in 4.626128 seconds
GeoIP Country with GEOIP_MEMORY_CACHE
1200000 lookups made in 0.078124 seconds
GeoIP Country with GEOIP_MEMORY_CACHE and GEOIP_CHECK_CACHE
1200000 lookups made in 20.818524 seconds
GeoIP Region
120000 lookups made in 0.568432 seconds
GeoIP Region with GEOIP_CHECK_CACHE
120000 lookups made in 3.009641 seconds
GeoIP Region with GEOIP_MEMORY_CACHE
1200000 lookups made in 0.103967 seconds
GeoIP Region with GEOIP_MEMORY_CACHE and GEOIP_CHECK_CACHE
1200000 lookups made in 21.076999 seconds
GeoIP Org
60000 lookups made in 0.521604 seconds
GeoIP Org with GEOIP_INDEX_CACHE
240000 lookups made in 0.011996 seconds
GeoIP Org with GEOIP_INDEX_CACHE and GEOIP_CHECK_CACHE
240000 lookups made in 4.125451 seconds
GeoIP Org with GEOIP_MEMORY_CACHE
600000 lookups made in 0.031249 seconds
GeoIP City
60000 lookups made in 2.145555 seconds
GeoIP City with GEOIP_INDEX_CACHE
240000 lookups made in 0.488223 seconds
GeoIP City with GEOIP_INDEX_CACHE and GEOIP_CHECK_CACHE
240000 lookups made in 5.412034 seconds
GeoIP City with GEOIP_MEMORY_CACHE
600000 lookups made in 0.182209 seconds
Closing due to inactivity.
I am trying to install on Windows 10 w/ Visual Studio 2017. Is this compatible with VS 2017 or should I try with VS 2010? The following is my output w/in the Developer Command Prompt:
C:\Users\ruse\Desktop\geoip-api-c>nmake /f Makefile.vc
Microsoft (R) Program Maintenance Utility Version 14.14.26431.0 Copyright (C) Microsoft Corporation. All rights reserved. cd libGeoIP "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe" -nologo -f Makefile.vc GeoIP.lib GEOIPDATADIR="C:\Windows\SYSTEM32" GEOIP_EXPORTS=1 link /DLL /nologo /subsystem:console GeoIP.obj GeoIPCity.obj GeoIP_deprecated.obj regionName.obj timeZone.obj pread.obj ws2_32.lib /out:GeoIP.dll /implib:GeoIP.lib cd .. "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe" -nologo -f Makefile.vc clean del libGeoIP*.obj del apps*.obj Could Not Find C:\Users\ruse\Desktop\geoip-api-c\apps*.obj del test*.obj Could Not Find C:\Users\ruse\Desktop\geoip-api-c\test*.obj cd libGeoIP "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe" -nologo -f Makefile.vc libGeoIP.lib GEOIPDATADIR="C:\Windows\SYSTEM32" cl -DWIN32 -DGEOIP_STATIC -MD -nologo -I..\libGeoIP -DGEOIPDATADIR=\"C:\Windows\SYSTEM32\" -DPACKAGE_VERSION=\"1.6.12\" -c GeoIP.c -I..\libGeoIP GeoIP.c cl -DWIN32 -DGEOIP_STATIC -MD -nologo -I..\libGeoIP -DGEOIPDATADIR=\"C:\Windows\SYSTEM32\" -DPACKAGE_VERSION=\"1.6.12\" -c GeoIPCity.c -I..\libGeoIP GeoIPCity.c cl -DWIN32 -DGEOIP_STATIC -MD -nologo -I..\libGeoIP -DGEOIPDATADIR=\"C:\Windows\SYSTEM32\" -DPACKAGE_VERSION=\"1.6.12\" -c GeoIP_deprecated.c -I..\libGeoIP GeoIP_deprecated.c cl -DWIN32 -DGEOIP_STATIC -MD -nologo -I..\libGeoIP -DGEOIPDATADIR=\"C:\Windows\SYSTEM32\" -DPACKAGE_VERSION=\"1.6.12\" -c regionName.c -I..\libGeoIP regionName.c cl -DWIN32 -DGEOIP_STATIC -MD -nologo -I..\libGeoIP -DGEOIPDATADIR=\"C:\Windows\SYSTEM32\" -DPACKAGE_VERSION=\"1.6.12\" -c timeZone.c -I..\libGeoIP timeZone.c cl -DWIN32 -DGEOIP_STATIC -MD -nologo -I..\libGeoIP -DGEOIPDATADIR=\"C:\Windows\SYSTEM32\" -DPACKAGE_VERSION=\"1.6.12\" -c pread.c -I..\libGeoIP pread.c lib -nologo GeoIP.obj GeoIPCity.obj GeoIP_deprecated.obj regionName.obj timeZone.obj pread.obj ws2_32.lib /OUT:libGeoIP.lib cd .. cd test "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe" -nologo -f Makefile.vc cd .. cd apps "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe" -nologo -f Makefile.vc cd ..
C:\Users\ruse\Desktop\geoip-api-c>nmake /f Makefile.vc test
Microsoft (R) Program Maintenance Utility Version 14.14.26431.0 Copyright (C) Microsoft Corporation. All rights reserved. cd libGeoIP "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe" -nologo -f Makefile.vc GeoIP.lib GEOIPDATADIR="C:\Windows\SYSTEM32" GEOIP_EXPORTS=1 link /DLL /nologo /subsystem:console GeoIP.obj GeoIPCity.obj GeoIP_deprecated.obj regionName.obj timeZone.obj pread.obj ws2_32.lib /out:GeoIP.dll /implib:GeoIP.lib cd .. cd test "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe" -nologo -f Makefile.vc cd .. cd test benchmark.exe NMAKE : fatal error U1077: '.\benchmark.exe' : return code '0xc0000135' Stop.