Here is my BoardField.h:
#pragma once
#include "ChessPiece.h"
#include "Game.h"
#include <SDL.h>
class BoardField{
private:
ChessPiece m_piece;
SDL_Rect m_field;
public:
friend class Game;
};
And Game.h
#pragma once
#include "BoardField.h"
class Game {
private:
//members
BoardField* m_board_fields; // 16th line
...
//methods
...
public:
...
};
And I'm getting these errors in VS2017 when trying to compile :
Where is the problem? Even tried to create new project it doesn't work anyway.