pcc compiler error

A Beaver annab at azure.UUCP
Fri Mar 1 14:44:09 AEST 1985


>References: <8494 at brl-tgr.ARPA>

> From: Kevin Szabo <wateng!ksbszabo>
> 
> >	struct xy  {
> >	 	int x;
> >	 	int y;
> >	 } a;
         ^^^
In looking through K&R, on page 123, the example which is shown,
shows that 'a' should be '*a'. Maybe THATS what it's complaining
about?
> >	 main()
> >	 {
> >		struct xy *p;
> >		p = &a;
> >	 	if (*p) {
> >			/* compiler error: zzzcode- bad type */
> >		}
> >	}

	 Annadiana Beaver
	A Beaver at Tektronix	" You think the present is moving fast,
				  wait 'til you see the future." -Ruby-



More information about the Comp.lang.c mailing list