Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/