OT: C syntax question
Chuck Swiger
cswiger at mac.com
Tue Jun 30 01:53:53 UTC 2009
Hi--
On Jun 29, 2009, at 5:41 PM, Robert Huff wrote:
> and the compiler does not complain. If, however, I try to
> prototype the function as:
>
> extern int plate_shift(struct CONTINENT *[][],int,float);
>
> with:
>
> CFLAGS = -Wall -std=c99
>
> I get:
>
> error: array type has incomplete element type
You need to provide the size for all but the first element; see K&Rv2
section 5.9 (p 113), or something like:
http://home.netcom.com/~tjensen/ptr/ch7x.htm
Regards,
--
-Chuck
More information about the freebsd-questions
mailing list