www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3DC8EAE1.3050306@st.com> |
Date: | Wed, 06 Nov 2002 11:11:45 +0100 |
From: | Pavel Holejsovsky <pavel DOT holejsovsky AT st DOT com> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826 |
X-Accept-Language: | en-us, en |
MIME-Version: | 1.0 |
To: | Claudius DOT Schnoerr AT DDG DOT de |
Cc: | cygwin AT cygwin DOT com |
Subject: | Re: Q: python compiled with gcc-3.2? |
References: | <H000076f16fcd067 DOT 1036577103 DOT eux100 DOT sgp DOT st DOT com AT MHS> |
Claudius, I think that your problem is that you are linking C++ dll with gcc driver. Try to use g++ also for linking, and it should work OK. Or add -lstdc++ switch ad the end of your link line (but using g++ for linking C++ modules is generally preferred). Pavel Claudius DOT Schnoerr AT DDG DOT de wrote: > Now, in SWIG-1.3.16/Examples/python/simple, the result of make: > > @PC169/.../simple$ make > make -f ../../Makefile SRCS='example.c' SWIG='../../../swig' \ > TARGET='example' INTERFACE='example.i' python > make[1]: Entering directory > `/u/schnoerr/Source/C++/Tools/SWIG-1.3.16/Examples/python/simple' > ../../../swig -python example.i > g++ -c example_wrap.c example.c -DHAVE_CONFIG_H -DUSE_DL_IMPORT > -I/hd/schnoerr/local/Installs/Programmierung/Shells/cygwin/lib/python2.2/inc > lude/python2.2 > -I/hd/schnoerr/local/Installs/Programmierung/Shells/cygwin/lib/python2.2/lib > /python2.2/config > gcc -shared example.o example_wrap.o > -L/hd/schnoerr/local/Installs/Programmierung/Shells/cygwin/lib/python2.2/lib > /python2.2/config -lpython2.2 -o _example.dll > example_wrap.o(.eh_frame+0x11):example_wrap.c: undefined reference to > `___gxx_personality_v0' > collect2: ld returned 1 exit status > make[1]: *** [python] Error 1 > make[1]: Leaving directory > `/u/schnoerr/Source/C++/Tools/SWIG-1.3.16/Examples/python/simple' > make: *** [all] Error 2 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |