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 X-AuthUser: gerrit:koeln.convey.de Date: Sat, 19 Apr 2003 17:30:58 +0200 From: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <57188354459.20030419173058@familiehaase.de> To: JoNO ZzZ CC: cygwin AT cygwin DOT com Subject: Re: undefined reference to `_WinMain AT 16 In-Reply-To: <20030419114039.85489.qmail@web41008.mail.yahoo.com> References: <20030419114039 DOT 85489 DOT qmail AT web41008 DOT mail DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hallo JoNO, Am Samstag, 19. April 2003 um 13:40 schriebst du: > I was tring to compile expat-1.95 and got this error: > "undefined reference to `_WinMain AT 16' > collect2: ld returned 1 exit status" > Why is that? What is missing? The libtool included in the expat sources is broken, regarding the use with Cygwin. You need to relibtoolize with libtool-devel as I did for the expat binary version for Cygwin. Put this in a script in the top source directory (and install libtool-devel it not already happened), run it and try again: #! /bin/sh echo "Copying libtool helper files ..." autoupdate (cd conftools/; rm -f ltmain.sh ltconfig) aclocal -I conftools libtoolize --force --copy --automake ltfiles=/usr/autotool/devel/share cp $ltfiles/aclocal/libtool.m4 conftools/libtool.m4 cp $ltfiles/libtool/missing \ $ltfiles/libtool/install-sh \ $ltfiles/libtool/mkinstalldirs \ conftools/ echo "Creating expat_config.h.in ..." autoheader echo "Creating configure ..." autoconf rm -rf autom4te*.cache exit 0 Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/