delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/19/11:27:09

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
X-AuthUser: gerrit:koeln.convey.de
Date: Sat, 19 Apr 2003 17:30:58 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <57188354459.20030419173058@familiehaase.de>
To: JoNO ZzZ <jonozzz AT yahoo DOT com>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019