Linker error when doing MSVC debug builds

Thomas Heller theller at python.net
Tue Apr 23 07:13:11 EDT 2002


"Markus Ewald" <Markus_Ewald at gmx.net> wrote in message news:3CC535A7.2070607 at gmx.net...
> No this is not a cry for help :)
> I've got a little comment about the MSVC build setup:
>
> First, note that it is absolutely legal for a win32 project to compile
> in debug mode and link release libraries (if the intentioned is not to
> debug the specific library).
> As an example, I think noone outside Microsoft has ever possessed debug
> builds of user32.lib or kernel32.lib, yet everyone is compiling his
> debug projects with those :)
>
>
> The windows setup program only contains python22.lib
> However, if you do a debug build of your project (and _DEBUG is defined)
> pyconfig.h tries to link python22_d.lib, resulting in a linker error.
>
So why don't you install the source distribution and compile it yourself?
This way you have all the debug libraries. Occasionally stepping through
Python's source may be very instructive or even help you better locate
bugs in your extension.

Thomas





More information about the Python-list mailing list