Hi,
I'm trying to install IP2location in Windows and I get the following error:
C:\Python-IP2Location-3.0.0>python setup.py build
running build
running build_ext
building 'IP2Location' extension
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I../C-IP2Location-3.0.0/libIP2L
ocation -IC:\Python25\include -IC:\Python25\PC -c IP2Location.c -o build\temp.wi
n32-2.5\Release\ip2location.o
In file included from IP2Location.c:3:
../C-IP2Location-3.0.0/libIP2Location/IP2Location.h:47:19: error: imath.h: No su
ch file or directory
../C-IP2Location-3.0.0/libIP2Location/IP2Location.h:62:1: warning: "DOMAIN" rede
fined
In file included from C:\Python25\include/pyport.h:231,
from C:\Python25\include/Python.h:57,
from IP2Location.c:1:
c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../../../../include/math.h:40:1: warning:
this is the location of the previous definition
In file included from IP2Location.c:3:
../C-IP2Location-3.0.0/libIP2Location/IP2Location.h:155: error: expected '=', ',
', ';', 'asm' or '__attribute__' before 'IP2Location_ipv6_to_no'
../C-IP2Location-3.0.0/libIP2Location/IP2Location.h:160: error: expected ')' bef
ore 'mp'
error: command 'gcc' failed with exit status 1
Thanks!
I'm trying to install IP2location in Windows and I get the following error:
C:\Python-IP2Location-3.0.0>python setup.py build
running build
running build_ext
building 'IP2Location' extension
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I../C-IP2Location-3.0.0/libIP2L
ocation -IC:\Python25\include -IC:\Python25\PC -c IP2Location.c -o build\temp.wi
n32-2.5\Release\ip2location.o
In file included from IP2Location.c:3:
../C-IP2Location-3.0.0/libIP2Location/IP2Location.h:47:19: error: imath.h: No su
ch file or directory
../C-IP2Location-3.0.0/libIP2Location/IP2Location.h:62:1: warning: "DOMAIN" rede
fined
In file included from C:\Python25\include/pyport.h:231,
from C:\Python25\include/Python.h:57,
from IP2Location.c:1:
c:\mingw\bin\../lib/gcc/mingw32/4.3.3/../../../../include/math.h:40:1: warning:
this is the location of the previous definition
In file included from IP2Location.c:3:
../C-IP2Location-3.0.0/libIP2Location/IP2Location.h:155: error: expected '=', ',
', ';', 'asm' or '__attribute__' before 'IP2Location_ipv6_to_no'
../C-IP2Location-3.0.0/libIP2Location/IP2Location.h:160: error: expected ')' bef
ore 'mp'
error: command 'gcc' failed with exit status 1
Thanks!