WHy doesnt this work in Lite-c?(works in C)

Posted By: Rackscha

WHy doesnt this work in Lite-c?(works in C) - 05/08/10 21:39

HI,
I have the problem that i need the following struct construction:

Code:
typedef struct {	
   struct NODE *node;	
   struct LINK *next;	
} LINK;

typedef struct {	
   LINK *child;	
   struct NODE *next;	
} NODE;



it would compile in C but NOT in lite-C. For the NODE definition in LINK struct it says:

unknown word NODE(struct)

Can someone help me?

Greets
Rackscha
Posted By: Lukas

Re: WHy doesnt this work in Lite-c?(works in C) - 05/08/10 22:04

In Lite-C, you can't define struct prototypes (except inside the very struct definition). So you have to use void*-pointers.
© 2023 lite-C Forums