Missing identifiers when embedding python in windows

Stefan stefan at wale.dyndns.dk
Sun Oct 20 22:28:49 CEST 2002


I had a little problem when embedding python in a C program using Visual 
C++ and python2.2.

When linking it complained over missing identifiers __imp__Py_Dealloc 
and __imp__Py_RefTotal.

If I put #undef _DEBUG before #include <Python.h> it works.

I cannot find anything in the documentation telling me I should do this. 
Maybe there is some other way to do this?
I guess the identifiers should have been part of python22_d.lib, but 
they are not.

Anyone have any input on this matter?

More information about the Python-list mailing list