Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-AuthUser: gerrit:koeln.convey.de
Date: Sat, 19 Apr 2003 17:30:58 +0200
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <57188354459.20030419173058@familiehaase.de>
To: JoNO ZzZ <jonozzz@yahoo.com>
CC: cygwin@cygwin.com
Subject: Re: undefined reference to `_WinMain@16
In-Reply-To: <20030419114039.85489.qmail@web41008.mail.yahoo.com>
References: <20030419114039.85489.qmail@web41008.mail.yahoo.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@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/

