I'm working on my first simple game with sdl and c++, and I have a couple of variables. First I have a gameRunning boolean, secondly I have a SDL_Surface called screen and I have a SDL_Rect called wall.
The compiler says that I have multiple definitions of all the variables mentioned before. When the definitions are in my .h file it gives the error, but when I cut and paste them into my cpp file it works fine.
I am sure that the definitions are not in the cpp file.