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: "Peter Bienstman" To: Subject: building Python extension modules - crash on import Date: Thu, 2 Aug 2001 15:28:30 +0200 Message-ID: <005001c11b57$053293f0$0454c19d@intec.rug.ac.be> 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.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Hi, I'm trying to build a simple C++ Python extension module under the latest cygwin. The module's name is 'convert'. After compiling convert.o as usual, I created a convert.def containing EXPORTS initconvert I then used this command to build the dll: dllwrap --dllname convert.dll --driver-name=g++ --def convert.def \ -o convert.dll -s --entry _DllMain AT 12 \ convert.o $(BOOST_LIB)/libboost_python.a \ /usr/bin/libpython2.1.dll This creates the dll without problems, but when I try to use it, I get a segmentation fault: >>>from convert import * 0 [main] python 406 open_stackdumpfile: Dumping stack trace to python2.1.exe.stackdump Segmentation fault (core dumped) Under Unix, I got everything working without problems. Any insights? Thanks, Peter ------------------------------------- Peter Bienstman Department of Information Technology INTEC/IMEC - Ghent University St.-Pietersnieuwstraat 41 B-9000 Gent - Belgium E-mail: Peter DOT Bienstman AT rug DOT ac DOT be Tel: +32 9 264 3445 Fax: +32 9 264 3593 ------------------------------------- -- 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/