Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <001601c0dd5e$96967140$e9332041@campbell> From: "Christopher Dale Campbell" To: "Cygwin" Subject: undefined reference to `WinMain AT 16' Date: Tue, 15 May 2001 12:46:27 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0013_01C0DD3D.0EF38DC0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 ------=_NextPart_000_0013_01C0DD3D.0EF38DC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit -----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 AT 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 iQA/AwUBOwFdYYXnWfGgRqP+EQIr/wCeP7PXLlNYc/wRslKtNuF+DfbWuhsAoNgK WMdXnHVEVoSVqimwF4wXzvGo =T73v -----END PGP SIGNATURE----- ------=_NextPart_000_0013_01C0DD3D.0EF38DC0 Content-Type: application/octet-stream; name="listing-7.4.c" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="listing-7.4.c" /* Week 1, Day 7, Listing 7.4; pg. 171 */=0A= /* Demonstrates the sizeof() operator */=0A= #include =0A= =0A= /* Declare several 100 element arrays */=0A= int intarray[100];=0A= long longarray[100];=0A= float floatarray[100];=0A= double doublearray[100];=0A= =0A= int maain(void)=0A= {=0A= /* Displays the sizes of numeric data types */=0A= printf("\nSize of short =3D %d bytes", (int) sizeof(short));=0A= printf("\nSize of int =3D %d bytes", (int) sizeof(int));=0A= printf("\nSize of long =3D %d bytes", (int) sizeof(long));=0A= printf("\nSize of float =3D %d bytes", (int) sizeof(float));=0A= printf("\nSize of double =3D %d bytes", (int) sizeof(double));=0A= =0A= /* Display the sizes of the four arrays */=0A= printf("\nSize of intarray =3D %d bytes", (int) sizeof(intarray));=0A= printf("\nSize of longarray =3D %d bytes", (int) sizeof(longarray));=0A= printf("\nSize of floatarray =3D %d bytes", (int) sizeof(floatarray));=0A= printf("\nSize of doublearray =3D %d bytes", (int) sizeof(doublearray));=0A= =0A= return 0;=0A= }=0A= ------=_NextPart_000_0013_01C0DD3D.0EF38DC0 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ------=_NextPart_000_0013_01C0DD3D.0EF38DC0--