   C circular structs [solved]
  I can't really think of a way to explain this so I'll use an example:typedef struct TILE{    MONSTER * rootMonster;} TILE;typedef struct MONSTER{    TILE * startingTile;} MONSTER;the structs refer to each other in a circle. The compiler says "syntax error : identifier 'MONSTER'". Is there a way to solve the error?Degra   
  You have to tell the compiler that MONSTER is a type before declaring TILE.Try this:struct MONSTER;struct TILE{    MONSTER* rootMonster;};struct MONSTER{    TILE* startingTile;};   ;typedef struct TILEtypedef struct MONSTER;{    MONSTER * rootMonster;} TILE;typedef struct TILE;typedef struct MONSTER{    TILE * startingTile;} MONSTER;i believe, but basically you need a forward declaration.   ;  Aaaah, thanks a lot guys.Degra   