Gcc & WinMain@16

Jorge Goncalvez goncal11@col.bsf.alcatel.fr
Mon Jul 23 23:57:00 GMT 2001


Hi, I checked the mailing list but I didn't find some informations except the 
use of -lm.
So i tried to port the dhcp version 2 of the ISC but I have some compilation 
errors:
 $ make
Making all in common
make[1]: Entering directory `/cygdrive/d/dhcp/code/dhcp/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/d/dhcp/code/dhcp/common'
Making all in server
make[1]: Entering directory `/cygdrive/d/dhcp/code/dhcp/server'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/d/dhcp/code/dhcp/server'
Making all in relay
make[1]: Entering directory `/cygdrive/d/dhcp/code/dhcp/relay'
/bin/gcc  -o dhcrelay dhcrelay.o  ../common/libdhcp.a
/usr/lib/libcygwin.a(libcmain.o)(.text+0x6a):libcmain.c: undefined reference to
`WinMain@16'
collect2: ld returned 1 exit status
make[1]: *** [dhcrelay] Error 1
make[1]: Leaving directory `/cygdrive/d/dhcp/code/dhcp/relay'
make: *** [all] Error 1

Why? Thanks.


More information about the Cygwin mailing list