[ python-Bugs-1028697 ] Problem linking on windows using mingw32
and C++
SourceForge.net
noreply at sourceforge.net
Wed Sep 15 19:28:54 CEST 2004
Bugs item #1028697, was opened at 2004-09-15 13:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1028697&group_id=5470
Category: Distutils
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Menard (devilwolf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem linking on windows using mingw32 and C++
Initial Comment:
When create a python extension in C++ and using ming32
to compile it, distutil will try to use 'cc' as the linker.
The problem is that the CCompiler.link() method will
substitude the linker it has found in linker_exe or
linker_so with the first part of compiler_cxx. (lines
175-176)
So adding the following line to Mingw32Compiler, near
line 296
compiler_cxx='g++ -mno-cygwin -O -Wall',
Fixes it for me.
Quickly looking at the CygwinCompiler indicates it
would suffer from he same problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1028697&group_id=5470
More information about the Python-bugs-list
mailing list