undefined reference to `WinMain@16'

Christopher Faylor cgf@redhat.com
Tue May 15 10:22:00 GMT 2001


On Tue, May 15, 2001 at 12:46:27PM -0400, Christopher Dale Campbell wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>I got this after `gcc listing-7.4.c -o listing-7.4` :
>
>/usr/lib/libcygwin.a(libcmain.o)(.text+0x7f): undefined reference to
>`WinMain@16'
>collect2: ld returned 1 exit status
>
>I've attached the actuall program I'm trying to compile.  It's a very
>simple program, which should compile with no problems.  I'm running
>cygwin-snapshot-20010510.

>int maain(void)
>{

You misspelled "main".

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list