I just started looking into SFML and i decide to break down that simple program into a Game class, but i am getting this errors:
Error 1 error LNK2001: unresolved external symbol ...
Error 2 error LNK1120: 1 unresolved externals
Here is my game class, i also include SFML/graohics.hpp so i could initialize a renderwindow the the circle shape from the example:
#include<SFML\Graphics.hpp>
class Game
{
public:
Game();
~Game();
void Run();
private:
//--Behaviour
void Update();
void Render();
//--Data Members
sf::RenderWindow mWindow;
sf::CircleShape mPlayer;
};
In my main all i have a game object and use the Run function, but i get that linker error. However it works fine in the main class.