[C++-sig] [boost.python] Debug build on win32 runtime trouble
Olaf Peter
ope-devel at gmx.de
Fri Sep 19 07:21:30 CEST 2008
>> Depency walker shows:
>>
>> d:\work\...\build\debug\PYTHON25_D.DLL
>> d:\work\...\build\debug\BOOST_PYTHON-VC80-MT-GD-1_35.DLL
>> + c:\windows\system32\PYTHON25.DLL
[...]
>> Note the BOOST_DEBUG_PYTHON define. As linker flags I've used:
> To get a pure python-debug build you need to explicitly tell boost to
> link to the debug version of python, by passing the option
> python-debugging=on to bjam when building boost. You will ghen get
> boost_python-vc80-mt-gyd-1_35.lib and .dll instead, and need to link
> to that.
>
> You also need to define BOOST_DEBUG_PYTHON when you build your
> application, see this url:
> http://www.boost.org/doc/libs/1_36_0/libs/python/doc/building.html#python-debugging-builds
As first thank you for the answer. Anyway, I assume the debug build of
boost_python dll ist wrong and points to the wrong python25.dll, should
be python25_d.dll. Could it be? I've used the boostpro windows installer
1.35.0.
Thanks,
Olaf
PS: My code works without defined BOOST_DEBUG_PYTHON; my crash results
really from different memory layout of the python25{_d}.dll used by
BOOST_PYTHON-VC80-MT-GD-1_35.DLL.
More information about the Cplusplus-sig
mailing list