Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualstevo5800

Posted 03 March 2013 - 07:21 AM

you have 2 definition of the class here's what it should look like 

 

header file 

 

 

class Game

{

    // Starts the game

    void Start();

};

 

cpp file

 

#include "Game.h"

 


void Game::Start()

{

    SDL_Init( SDL_INIT_EVERYTHING );

    SDL_Quit();

}


#2stevo5800

Posted 03 March 2013 - 07:17 AM

you have 2 definition of the class here's what it should look like 

 

header file 

 

class Game
{
public:
    void Start();

}

 

cpp file

 

#include "Game.h"


void Game::Start()

{

       SDL_Init( SDL_INIT_EVERYTHING );


        SDL_Quit();

}


#1stevo5800

Posted 03 March 2013 - 07:12 AM

remove #include "Game.h" from the header file 


PARTNERS