Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Reply-To: <nhv@cape.com>
From: "Norman Vine" <nhv@cape.com>
To: <cygwin@cygwin.com>
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/

