Help defineing class in cpp file

I've googled but cannot find the solution. Heres a small simple version of the code that gives the problem
1
2
3
4
5
6
7
8
9
10
11
12
class GAME
{
    public:
    GAME(sf::RenderWindow & rw);
    ~GAME();

    bool Start(sf::RenderWindow & rw);


    private:
    void InitBackground();
    void HandlePlateforms(VisibleGameObject Object);


1
2
3
4
5
6
7
8
9
10
#include GAME.h
GAME::GAME(sf::RenderWindow & GameWindow){
}

void GAME::InitBackground()
{
}
bool GAME::Start(sf::RenderWindow & rw)
{
}


now the first snippet was from GAME.h and the 2nd from GAME.cpp i include GAME.h in GAME.cpp but i get errors saying extra quliafication on each function in GAME.cpp and that it cannot be overloaded with the functions in GAME.h....can somebody plz help
Last edited on
Topic archived. No new replies allowed.