I have this header file in my project:
int poX, posY;
#endif // COMMONINCLUDES_H
void turn(Player *currplayer, int mapSize);
You have circular header inclusion.
game.h. Your include guards break the infinite inclusion cycle, but they break it at the point where
Player remains undeclared at the point of
Judging by what you posted so far, there's no need for
#include "game.h" in
commonincludes.h. What it is doing there?
#include "..." for including your own header files. The
#include <...> syntax is for standard headers.