install IP2location in Windows error:'gcc' failed with exit status 1

Joined
May 8, 2010
Messages
1
Reaction score
0
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top