error: undefined reference to `_WinMain@16'

Robert Body rbody99@hotmail.com
Sat Dec 3 20:37:00 GMT 2005


Hi, I saw the explanation to error: undefined reference to `_WinMain@16'
in http://sourceware.org/ml/cygwin/2005-10/msg01038.html

but I don't understand how that would apply to my problem.
I am trying to install Hermes-1.3.3 and I get the error about WinMain@16, 
but all I am trying to do is compile a graphics library Hermes, that is 
needed by ClanLib 0.6.5, that is needed by Pingus.

Thank you for your help
-Robert

------------------------------------
/usr/i686-pc-cygwin/bin/ld.exe -r -o .libs/libHermes.la-39.o .libs/x86p_i8.o 
.libs/libHermes.la-38.o
/usr/i686-pc-cygwin/bin/ld.exe -r -o .libs/libHermes.la-40.o 
.libs/mmxp2_32.o .libs/libHermes.la-39.o
if test "x`sed 1q .libs/libHermes.exp`" = xEXPORTS; then cp 
.libs/libHermes.exp .libs/cygHermes-1.dll-def; else echo EXPORTS > 
.libs/cygHermes-1.dll-def; _lt_hint=1; cat .libs/libHermes.exp | while read 
symbol; do set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >> 
.libs/cygHermes-1.dll-def;; 4) echo " $2 $3 $4 ; " >> 
.libs/cygHermes-1.dll-def; _lt_hint=`expr $_lt_hint - 1`;; *) echo " $2 @ 
$_lt_hint $3 ; " >> .libs/cygHermes-1.dll-def;; esac; _lt_hint=`expr 1 + 
$_lt_hint`; done; fi
gcc -Wl,--base-file,.libs/cygHermes-1.dll-base -Wl,-e,__cygwin_dll_entry@12 
-o .libs/cygHermes-1.dll .libs/libHermes.la-40.o
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):: 
undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
make[2]: *** [libHermes.la] Error 1
make[2]: Leaving directory `/home/Owner/utils/herm/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/Owner/utils/herm/src'
make: *** [all-recursive] 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