Solution for python22_d.lib
Samuel Schulenburg
samschul at pacbell.net
Thu Apr 4 18:58:09 EST 2002
I have used the folloing technique to get around the need to have a
debug library for python. The following technique has been posted
previously by Tim Peters.
#ifdef _DEBUG
#undef _DEBUG // Get the release library
#include <Python.h>
#include <graminit.h> // used to embed python
#include <pythonrun.h> // used to embed python
#define _DEBUG // Switch back to debug mode for user code
#else
#include <Python.h>
#include <graminit.h> // used to embed python
#include <pythonrun.h> // used to embed python
#endif
Sam Schulenburg
More information about the Python-list
mailing list