[New-bugs-announce] [issue16779] Fix compiler warning when building extension modules on 64-bit Windows
report at bugs.python.org
Tue Dec 25 19:38:54 CET 2012
New submission from Jeremy Kloth:
The 64-bit linker doesn't mangle the dllexport'ed module init function (from PyMODINIT_FUNC) so it causes an exported name conflict. We cannot just remove that name from export_symbols as the module may not have used PyMODINIT_FUNC on its init function.
The attached patch "fixes" the problem by suppressing the warning.
I personally would prefer the "pure" approach by assuming that the module initialization function would be required to be declared by PyMODINIT_FUNC and therefore the symbol would not need to be exported on the command line.
components: Build, Distutils
nosy: eric.araujo, jkloth, tarek
title: Fix compiler warning when building extension modules on 64-bit Windows
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file28432/msvc9compiler.diff
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce