undefined reference to `WinMain@16'

Christopher Dale Campbell DaleCampbell@revolutionist.com
Tue May 15 09:46:00 GMT 2001


-----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.

Christopher Dale Campbell
DaleCampbell(at)revolutionist(dot)com
/*******************************
For PGP & GPG Keys, finger
campbell(at)cyberspace(dot)org
*******************************/


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use < http://www.pgp.com >

iQA/AwUBOwFdYYXnWfGgRqP+EQIr/wCeP7PXLlNYc/wRslKtNuF+DfbWuhsAoNgK
WMdXnHVEVoSVqimwF4wXzvGo
=T73v
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: listing-7.4.c
Type: text/x-c
Size: 936 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010515/4503420e/attachment.bin>


More information about the Cygwin mailing list