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: FW: Problem building python extensions Date: Tue, 25 Sep 2001 18:01:55 -0400 Message-ID: <003501c1460d$b18cd300$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 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Darrell R. Hougen writes: > >I'm new to using cygwin to build python extension modules and am having >a fair bit of trouble. I can build the extension module under Solaris, >but when I try to build under cygwin, I get the following errors: < snip > >I am using active state python 2.1 and gcc 2.95.3-5 on an NT 4.0 box. I >downloaded the version of cygwin that I'm using only yesterday, so it >should be up to date. AFAIK you need to use a Cygwin compiled Python library you also need to add a -DUSE_DL_IMPORT to your gcc command line and link against $LIB_DIR/Python$VER/config/python$VER.dll Where $LIB_DIR is either /lib/python$VER or /usr/local/lib/python$VER depending whether you use the distributed python or have compiled it yourself If this doesn't work ask again 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/