[Geoip-general] Installing GeopIP on win2k and setting up for use with python
Brought to you by:
tjmather
From: Richard E. <ric...@yo...> - 2003-04-28 16:34:48
|
Hi, Does someone have step by step instructions on how to install GeoIP with the python api? I'm not very familiar with compiling/building stuff with MS visual 6.0 and have basically spent 2 days getting nowhere. Have tried using info I have found on the net to work my way thru it but keep on getting errors as well as confused. Have tried creating a project using "Windows application" and "windows console application", followed the win install help by adding lib links to the project and adding the directories links for include and lib files. Have also downloaded the zlib and unzipped into the same folder as GeoIP. Try compiling/building and end up with the following errors... ##### Compiling... GeoIP.c c:\program files\geoip\libgeoip\geoip.c(529) : warning C4018: '==' : signed/unsigned mismatch Linking... GeoIP.obj : error LNK2001: unresolved external symbol _gethostbyname@4 LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/geoip_con.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. geoip_con.exe - 3 error(s), 1 warning(s) ##### Any pointers at how to do this, and what I should be ending up with, would be great. Is there specific places the downloaded GeoIP folder and dat file should be installed otherwise it wont work? Thank you in advance, Richard --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.476 / Virus Database: 273 - Release Date: 24/04/2003 |