Mail Archives: cygwin/2001/05/15/12:54:12
------=_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 <http://www.pgp.com>
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 <stdio.h>=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--
- Raw text -