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]

Re:Gcc problem


At 11:25 AM 7/23/2001, Jorge Goncalvez wrote:
>I tried to compile a version of DHCPd of the ISC version2, and i have a problem 
>with gcc:
>
>$ 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.


Why the undefined reference to `WinMain@16'?
http://www.cygwin.com/faq/faq_4.html#SEC84

The FAQ and mail archives can be a great source of information.  It's 
worthwhile to check out these areas before posting.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]