I keep getting an error in Code::Blocks after compiling:
'''
error: expected ';' after class definition
'''
, but when I add the semicolon in, it gives me:
internal compiler error: in gt_pch_note_object, at
ggc-common.c:276
};
specifying the semicolon I had just added in behind the curly bracket. Either way, there is still an error. What is wrong with it?? The class I was writing was:
class Game{
public:
Game();
~Game();
void init(const char* title, int xpos, int ypos, int
width, int height, bool fullscreen);
void handleEvents();
void update();
void render();
void clean();
bool running();
private:
bool isRunning;
SDL_Window *window;
SDL_Renderer *renderer;
};
I was using the SDL2 library to write a game. Is something wrong with my code?