This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

undefined reference to `_WinMain@16


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]