[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

Marek Marczykowski-Górecki report at bugs.python.org
Wed Jul 31 02:48:17 CEST 2013


Marek Marczykowski-Górecki added the comment:

I can confirm that when a module is linked against msvcr90, it crashes with "invalid access to memory". When removed that library from the linker options (that is - no explicit msvcr, in any version) - module worked perfectly.

Note that comment on http://hg.python.org/cpython/file/6e1dd1ce95b8/Lib/distutils/cygwinccompiler.py#l333 (Minge32CComiler class) already says "no additional libraries needed", but 3 lines later it sets dll_libraries to msvcr90 (via get_msvcr). So just removing lines 336:338 works great. Patch attached. Any chances to get this fixed in the next python 2.7.x release?

My system is Windows 7 64bit, Python 2.7.5 64bit (from official msi installer)

----------
keywords: +patch
nosy: +marmarek
Added file: http://bugs.python.org/file31094/python-distutils-mingw32.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16472>
_______________________________________


More information about the Python-bugs-list mailing list