Struct definition in MS-C

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Aug 18 01:03:20 AEST 1989


In article <Aug.16.14.48.38.1989.11505 at caip.rutgers.edu> shuang at caip.rutgers.edu (Shuang Chen) writes:
>struct node {
>	struct node *next;
>	};
>as it is with standard C, but this doesn't work with MS-C.

Actually that should have worked with anybody's C.
Try something like
	struct node;
	struct node {
		struct node *next;
	};
If that doesn't work either, consider changing compiler vendors.



More information about the Comp.lang.c mailing list