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: <017a01c2f540$982c0910$82bd4c51@ellixia> Reply-To: "Elfyn McBratney" From: "Elfyn McBratney" To: "cygwin" References: <30E10C5E4EE6D31181EF00508B8B5BBB117BE8 AT EXCHANGE-SERVER DOT ddg DOT de> Subject: Re: Just a suggestion: SWIG probably needs recompilation!? Date: Fri, 28 Mar 2003 15:42:09 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 > after installation of the newest cygwin release I cannot make a small > swig-program example which worked before. > > I am not sure what of the many reinstalled cygwin components is responsible > for that, but I suppose that you test it and recompile it in the case of > need. > > Here is the error message: > > g++ -g -DPC -L/dokus/schnoerr/local/Libs -lSmartPtr > -L/hd/schnoerr/local/Instal > ls/Programmierung/Shells/cygwin/lib/python2.2/config -lpython2.2 > TestClass.o > -o TestClass > /bin/../lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(libcmain.o)(.tex > t+0x7c): undefined reference to `_WinMain AT 16' > collect2: ld returned 1 exit status Cockpit error. Try this test again with the following g++ comand: $ g++ -g -DPC TestClass.o -o testClass -L/dokus/schnoerr/local/Libs \ > -L/hd/schnoerr/local/Installs/Programmierung/Shells/cygwin/lib/python2.2/c onfig \ > -lSmartPtr -lpython2.2 You need to make sure that the libraries are linked in at the end of the gxx command. Regards, Elfyn McBratney elfyn AT exposure DOT org DOT uk www.exposure.org.uk -- 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/