[Bf-committers] MinGW debug builds do not run
Peter Kümmel
syntheticpp at gmx.net
Wed Feb 16 23:41:54 CET 2011
On 16.02.2011 23:21, Peter Kümmel wrote:
> On 16.02.2011 12:27, Tom Edwards wrote:
>> Thanks, but the DLL doesn't have it either. It has
>> PyModule_Create2TraceRefs instead.
>>
>
> I mean you should generate the .lib before linking,
> maybe it could link anyway, then it should also start.
>
The relevant definition is in
- python3.1/modsupport.h:
#ifdef Py_TRACE_REFS
/* When we are tracing reference counts, rename PyModule_Create2 so
modules compiled with incompatible settings will generate a
link-time error. */
#define PyModule_Create2 PyModule_Create2TraceRefs
#endif
PyAPI_FUNC(PyObject *) PyModule_Create2(struct PyModuleDef*,
int apiver);
#define PyModule_Create(module) \
PyModule_Create2(module, PYTHON_API_VERSION)
PyAPI_DATA(char *) _Py_PackageContext;
- python3.1/object.h:
#if defined(Py_DEBUG) && !defined(Py_TRACE_REFS)
#define Py_TRACE_REFS
#endif
- pyconfig.h is
#ifdef _DEBUG
# define Py_DEBUG
#endif
So maybe scons doesn't set _DEBUG in debug mode.
Peter
More information about the Bf-committers
mailing list