D
Dante
I am having trouble compiling the following 2 structs because they
both refer to each other. Is it possible to have some kind of struct
prototype to get this to compile? I tried "struct Object_Children;" at
the top line, along with a few other things, but I still get compile
errors.
typedef struct _Object
{
Object_Children children;
} Object;
typedef struct _Object_Children
{
Object *children_array; //array of Objects
} Object_Children;
both refer to each other. Is it possible to have some kind of struct
prototype to get this to compile? I tried "struct Object_Children;" at
the top line, along with a few other things, but I still get compile
errors.
typedef struct _Object
{
Object_Children children;
} Object;
typedef struct _Object_Children
{
Object *children_array; //array of Objects
} Object_Children;