[issue23393] [Windows] Unable to link with Python in debug configuration

Sébastien Gallou report at bugs.python.org
Wed Feb 4 20:52:33 CET 2015


Sébastien Gallou added the comment:

Thanks Steve for your quick answer.
It's now clear for me.

I will then apply this workaround :

#ifdef PYTHON_USE_SOURCES
   #include <Python.h>
#else
   #if defined WIN32 && defined _DEBUG
      #undef _DEBUG // Undef _DEBUG to use only release version of Python.lib. The debug version of Python.lib is not provided with the Windows installer version (https://www.python.org/downloads/windows/)
      #include <Python.h>
      #define _DEBUG
   #else
      #include <Python.h>
   #endif
#endif // PYTHON_USE_SOURCES

Sébastien Gallou

----------
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23393>
_______________________________________


More information about the Python-bugs-list mailing list