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. ---------- assignee: eric.araujo components: Build, Distutils files: msvc9compiler.diff keywords: patch messages: 178160 nosy: eric.araujo, jkloth, tarek priority: normal severity: normal status: open 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 <rep...@bugs.python.org> <http://bugs.python.org/issue16779> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com