[issue21292] C API in debug fails

Martin v. Löwis report at bugs.python.org
Sat Apr 19 11:13:33 CEST 2014


Martin v. Löwis added the comment:

I think the issue is actually slightly different. You can certainly build your Python "in debug", and still link with the release mode Python. The question is what "in debug" means, and the normal definition would be "with the generation of debug symbols by the compiler".

What you cannot do is
1. to build with _DEBUG defined (or whatever the exact spelling of the macro is, or
2. to link with the debug version of msvcrt.

We could fix 1, i.e. allowing you to define _DEBUG, and still bind the release version. I think we cannot reasonably fix 2; this is a Microsoft issue.

You can work around by simply not defining _DEBUG, and still build "in debug"

----------

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


More information about the Python-bugs-list mailing list