[Insight-users] Notes on WrapITK under Windows
Blezek, Daniel J (GE, Research)
blezek at crd.ge.com
Tue Aug 7 11:26:52 EDT 2007
OK, another try
// If debug, Python wants pythonxx_d.lib, so fake it out
#ifdef _DEBUG
#undef _DEBUG
#include <Python.h>
#define _DEBUG
#else
#include <Python.h>
#endif
-----Original Message-----
From: Blezek, Daniel J (GE, Research)
Sent: Tuesday, August 07, 2007 11:25 AM
To: Blezek, Daniel J (GE, Research); Gaëtan Lehmann; Ali -
Cc: ITK
Subject: RE: [Insight-users] Notes on WrapITK under Windows
mmm... Stupid outlook:
// If debug, Python wants pythonxx_d.lib, so fake it out #ifdef _DEBUG #undef _DEBUG #include <Python.h> #define _DEBUG #else #include <Python.h> #endif
Blezek, Daniel J (GE, Research) wrote:
>>> (1) The linker complains about the debug version of the python
>>> library. Python for windows is not shipped with the debug library,
>>> however, it can be downloaded somewhere from http://
>>> www.activestate.com .
>>
>> I never tried that - only a basic install of the binaries from python
>> website.
>
> This one I can help with: the Python guys put some Windows specific
> code in Python.h that requires the debug DLL when you compile w/Debug
> or RelWithDebInfo. You can skirt this:
>
> // If debug, Python wants pythonxx_d.lib, so fake it out #ifdef _DEBUG
> #undef _DEBUG #include <Python.h> #define _DEBUG #else #include
> <Python.h> #endif
>
> -dan
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list