esnme/ultrajson — Issue #35: Problem installing on Windows 7
Author: gerigk
Created: 2012-02-11 12:09:09+00:00
State: open

Can anybody help me out? I do not have this problem when building other packages (e.g. Pandas)

python setup.py build --compiler=mingw32
running build
running build_ext
building 'ujson' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\python
creating build\temp.win32-2.7\Release\lib
c:\Rtools\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I./python -I./lib -IC:\P
ython27\include -IC:\Python27\PC -c ./python/ujson.c -o build\temp.win32-2.7\Rel
ease\.\python\ujson.o
c:\Rtools\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I./python -I./lib -IC:\P
ython27\include -IC:\Python27\PC -c ./python/objToJSON.c -o build\temp.win32-2.7
\Release\.\python\objtojson.o
In file included from ./python/objToJSON.c:4:0:
./lib/ultrajson.h:83:26: error: conflicting types for 'uint32_t'
c:\rtools\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/stdint.h:32:20:
note: previous declaration of 'uint32_t' was here
./python/objToJSON.c: In function 'PyLongToINT64':
./python/objToJSON.c:101:12: warning: unused variable 'obj'
./python/objToJSON.c: In function 'objToJSON':
./python/objToJSON.c:695:3: warning: initialization from incompatible pointer ty
pe
./python/objToJSON.c:706:3: warning: initialization from incompatible pointer ty
pe
./python/objToJSON.c: At top level:
./python/objToJSON.c:92:14: warning: 'PyIntToINT64' defined but not used
error: command 'gcc' failed with exit status 1