Problem compiling Python 2.0 extension under Win32

Gerhard Häring gerhard_haering at yahoo.com
Thu Oct 26 03:31:40 EDT 2000


Hi folks,

I have just tried to make compile the MySQL database module with Python
2.0 headers/libs under Win32 with Visual C++. I have already tried
several options, but I alwyays get the following messages at the linking
stage:

_mysqlmodule.obj : error LNK2001: unresolved external symbol
__imp___Py_Dealloc
_mysqlmodule.obj : error LNK2001: unresolved external symbol
__imp___Py_RefTotal
_mysqlmodule.obj : error LNK2001: unresolved external symbol
__imp__Py_InitModule4TraceRefs

I think the __imp__ is the problem. It should not be in the identifier,
should it? I couldn't figure out where and why this gets into the
symbols. Has anybody already had this problem, any ideas?

Gerhard Haering





More information about the Python-list mailing list