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: <20030419114039.85489.qmail@web41008.mail.yahoo.com> Date: Sat, 19 Apr 2003 04:40:39 -0700 (PDT) From: JoNO ZzZ Subject: undefined reference to `_WinMain AT 16 To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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? Thanks -------------------------- JoNO AT server /tmp/expat-1.95.6 $ make /bin/bash ./libtool --silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototype s -Wstrict-prototypes -fexceptions -I./lib -I. -o lib/xmlparse.lo -c lib/xmlpa rse.c /bin/bash ./libtool --silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototype s -Wstrict-prototypes -fexceptions -I./lib -I. -o lib/xmltok.lo -c lib/xmltok. c /bin/bash ./libtool --silent --mode=compile gcc -g -O2 -Wall -Wmissing-prototype s -Wstrict-prototypes -fexceptions -I./lib -I. -o lib/xmlrole.lo -c lib/xmlrol e.c /bin/bash ./libtool --silent --mode=link gcc -g -O2 -Wall -Wmissing-prototypes - Wstrict-prototypes -fexceptions -I./lib -I. -no-undefined -version-info 4:0:4 -rpath /usr/local/lib -o libexpat.la lib/xmlparse.lo lib/xmltok.lo lib/xmlrole. lo /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(libcmain.o)(.text+0x7c) : undefined reference to `_WinMain AT 16' collect2: ld returned 1 exit status make: *** [libexpat.la] Error 1 ------------------ -- 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/