undefined reference to `_WinMain@16
JoNO ZzZ
jonozzz@yahoo.com
Sun Apr 20 14:12:00 GMT 2003
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?
Thanks
--------------------------
JoNO@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@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/
More information about the Cygwin
mailing list