Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Reply-To: From: "Norman Vine" To: , Subject: RE: compiling python extensions under Cygwin Date: Fri, 23 Nov 2001 12:02:04 -0500 Message-ID: <017601c17440$93f63640$a300a8c0@nhv> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2232.26 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <3BFE32A2.18575.A410FA@localhost> cliff AT ember DOT com writes: > >I'm trying to move some python extensions from Linux to Cygwin, >and I don't know how to compile them properly. Searching the web >didn't yield much info, so any examples/howtos would be greatly >appreciated. > >Specific questions: > >1. Cygwin python (2.1.1) doesn't seem to import ".so" files, so I >assume that I must compile to ".dll" Could someone confirm this? >Are there alternatives? Well yes, this is windows ! >2. When I try to create a ".dll" using the information on the Cygwin >website, I get a linker warning saying that it could not find a >reference to mainCRTStartup (even though my extension does not >have any GUI). Importing the resulting .dll leads to a segfault. >What gives? Hmm, For starters I reccomend using python's Distutils and then building extensions should just happen automagically in a cross-platform way. If you really want to hand build extensions with Makefiles I suggest downloading the Cygwin Python source distribution and studying how it is done there. specifically look at the following make defines CCSHARED LDSHARED BLDSHARED But learn to use the Distutils module, it is MUCH simpler once you get the hang of it :-) Questions about using Distutils should be asked on the Python List Cheers Norman -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/