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: undefined reference to `WinMain@16'


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


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