[Patches] [ python-Patches-981773 ] crach link c++ extension by mingw

SourceForge.net noreply at sourceforge.net
Sat Aug 7 16:29:27 CEST 2004


Patches item #981773, was opened at 2004-06-29 01:42
Message generated for change (Comment added) made by jepler
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=981773&group_id=5470

Category: Distutils and setup.py
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexandr Zamaraev (shura_zam)
Assigned to: Nobody/Anonymous (nobody)
Summary: crach link c++ extension by mingw

Initial Comment:
if cource of exttension module writen in C++
setup break and say:

cc -mno-cygwin -shared -s build\temp.win32-2.3
\Release\dybaseapi.o 
build\temp.win32-2.3\Release\..\src\btree.o 
build\temp.win32-2.3\Release\..\src\database.o 
build\temp.win32-2.3\Release\..\src\dybase.o 
build\temp.win32-2.3\Release\..\src\file.o 
build\temp.win32-2.3\Release\..\src\pagepool.o 
build\temp.win32-2.3\Release\dybaseapi.def 
-LC:\Lang\Python23\libs -LC:\Lang\Python23\PCBuild 
-lpython23 -o build\lib.win32-2.3\dybaseapi.pyd
error: command 'cc' failed: No such file or directory

I patch cygwinccompiler.py for resolve:

*** C:\Lang\Python23\work\Python-2.3.4
\Lib\distutils\cygwinccompiler.py	Mon Apr 14 
19:51:26 2003
--- C:\Lang\Python23\work\cygwinccompiler2.py
	Tue Jun 29 13:00:23 2004
***************
*** 108,113 ****
--- 108,114 ----
          # XXX optimization, warnings etc. should be 
customizable.
          self.set_executables(compiler='gcc -mcygwin -O -
Wall',
                               compiler_so='gcc -mcygwin -
mdll -O -Wall',
+                              compiler_cxx='g++ -mcygwin -O -
Wall',
                               linker_exe='gcc -mcygwin',
                               linker_so=('%s -mcygwin %s' %
                                          (self.linker_dll, 
shared_option)))
***************
*** 295,300 ****
--- 296,302 ----
  
          self.set_executables(compiler='gcc -mno-
cygwin -O -Wall',
                               compiler_so='gcc -mno-cygwin -
mdll -O -Wall',
+                              compiler_cxx='g++ -mno-cygwin -
O -Wall',
                               linker_exe='gcc -mno-cygwin',
                               linker_so='%s -mno-cygwin %s %
s'
                                          % (self.linker_dll, 
shared_option,


----------------------------------------------------------------------

Comment By: Jeff Epler (jepler)
Date: 2004-08-07 09:29

Message:
Logged In: YES 
user_id=2772

Please attach your diff, rather than pasting it into the
text box.  The diff is hopelessly mangled, and cannot be
applied for testing.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=981773&group_id=5470


More information about the Patches mailing list