Bugs item #1028697, was opened at 2004-09-15 17:28 Message generated for change (Comment added) made by dobesv You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1028697&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Distutils Group: Python 2.3 Status: Open Resolution: None Priority: 5 Private: No 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. ---------------------------------------------------------------------- Comment By: Dobes V (dobesv) Date: 2007-05-22 19:30 Message: Logged In: YES user_id=400635 Originator: NO This is a duplicate of 832159. See the comments in that one for a workaround that doesn't require patching your distutils sources. Note that for cygwin, you can set some environment variables to change the compiler/linker. This doesn't work in mingw32 due to a bug in distutils. ---------------------------------------------------------------------- Comment By: Steve Menard (devilwolf) Date: 2004-09-18 17:54 Message: Logged In: YES user_id=423569 Indeed it does seem identical to http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=877165 thanks. ---------------------------------------------------------------------- Comment By: David S. Rushby (woodsplitter) Date: 2004-09-17 16:15 Message: Logged In: YES user_id=414645 Is this a duplicate of the following two bug reports? http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=877165 http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=832159 The first of those two was closed with a notice that the patch is in CVS; the second is still open. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1028697&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com