I have the folowing header file :
#ifndef SERVER_STRUCTURES_H
#define SERVER_STRUCTURES_H
typedef struct game {
int id;
struct player player1;
struct player player2;
struct game *next;
} game_t;
typedef struct player {
int id;
int score;
struct player *player1;
struct game *g ;
} player_t;
#endif
I get the error: field 'player1' has incomplete type struct player player1
and
field 'player2' has incomplete type struct player player2.
What is the mistake? thank you!