Problem with compiling module usung VC and Python 2.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyMQI |
Fix Released
|
Low
|
Dariusz Suchojad |
Bug Description
I have a problem while compiling module.
I use ActivePython 2.6:
c:\python_
ActivePython 2.6.5.12 (ActiveState Software Inc.) based on
Python 2.6.5 (r265:79063, Mar 20 2010, 14:22:52) [MSC v.1500 32 bit (Intel)] on
win32
Moduke comopilation ends with:
c:\python_
Building PyMQI server 32bits
running build
running build_py
running build_ext
building 'pymqe' extension
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -DPYQMI_
\c\include" -IC:\Python26\
2-2.6\Release\
pymqe.c
pymqe.c(949) : error C2275: 'PyObject' : illegal use of this type as an expressi
on
pymqe.c(949) : error C2065: 'pyItemIntVal' : undeclared identifier
pymqe.c(950) : error C2065: 'pyItemIntVal' : undeclared identifier
pymqe.c(950) : warning C4047: 'function' : 'PyObject *' differs in levels of ind
irection from 'int'
pymqe.c(950) : warning C4024: 'PyDict_SetItem' : different types for formal and
actual parameter 3
pymqe.c(952) : error C2065: 'pyItemIntVal' : undeclared identifier
pymqe.c(952) : warning C4047: '==' : 'int' differs in levels of indirection from
'void *'
pymqe.c(952) : error C2065: 'pyItemIntVal' : undeclared identifier
pymqe.c(952) : error C2065: 'pyItemIntVal' : undeclared identifier
pymqe.c(952) : error C2065: 'pyItemIntVal' : undeclared identifier
pymqe.c(993) : error C2275: 'PyObject' : illegal use of this type as an expressi
on
pymqe.c(993) : error C2065: 'pyItemStrVal' : undeclared identifier
pymqe.c(994) : error C2065: 'pyItemStrVal' : undeclared identifier
pymqe.c(994) : warning C4047: 'function' : 'PyObject *' differs in levels of ind
irection from 'int'
pymqe.c(994) : warning C4024: 'PyDict_SetItem' : different types for formal and
actual parameter 3
pymqe.c(998) : error C2065: 'pyItemStrVal' : undeclared identifier
pymqe.c(998) : warning C4047: '==' : 'int' differs in levels of indirection from
'void *'
pymqe.c(998) : error C2065: 'pyItemStrVal' : undeclared identifier
pymqe.c(998) : error C2065: 'pyItemStrVal' : undeclared identifier
pymqe.c(998) : error C2065: 'pyItemStrVal' : undeclared identifier
pymqe.c(1029) : error C2275: 'PyObject' : illegal use of this type as an express
ion
pymqe.c(1029) : error C2065: 'returnValue' : undeclared identifier
pymqe.c(1032) : error C2065: 'returnValue' : undeclared identifier
pymqe.c(1032) : warning C4047: 'return' : 'PyObject *' differs in levels of indi
rection from 'int'
error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' fa
iled with exit status 2
I don't know why this failed: wrong Python, C compiler or module?
tags: | added: compilation setup |
Hm, I can confirm it, not sure why it's happening but I'll investigate it. In the meantime, I'm sure you won't have any problems with MinGW, that's the stack I've been using to create Windows binaries so far. And that's what I'll use to create Python 2.5 binaries as well because VC9.0 won't work with Python 2.5 and Microsoft doesn't seem to offer the previous versions of their compiler.