For some reason when I compile my code:
class MainClass
{
public:
MainClass(void);
bool init();
bool loadMedia();
SDL_Surface* loadSurface( std::string path );
void gameLoop();
~MainClass(void);
private:
SDL_Window* gWindow;
SDL_Surface* gScreenSurface;
SDL_Surface* gPNGSurface;
SDL_Surface* gPNGSurface;
static const int SCREEN_WIDTH = 640;
static const int SCREEN_HEIGHT = 480;
};
the compiler gives out this error for every pointer that I have. Any advice?
error C2143: syntax error : missing ';' before '*'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int