Missing identifiers when embedding python in windows

Stefan stefan at wale.dyndns.dk
Sun Oct 20 16:28:49 EDT 2002


Hi.

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