class player
{
class moveit;
public:
player():pcolor(-2){};
~player();
int pcolor; // player's color
stone p_stone[12]; //didnt mention class 'stone'
stone eat_move_p[12];
staticvoid update_stone(int &i, int &j,int &count, int a); //updates stone
moveit *pmove;
};
class checker
{
public:
checker();
~checker();
staticint board[8][8];
static player *black;
static player *white;
staticint player_turn;
bool check_to_eat(int a[8][8],int player_t);
void print_board(int board[8][8]);
private:
intstaticconst black_count=12;
intstaticconst white_count=12;
};
This function is declared in player.h , and i want to use the 'player' objects that are declared in checker.h,but I get:
"error LNK2001: unresolved external symbol "public: static class player * checker::white"
error LNK2001: unresolved external symbol "public: static class player * checker::black"