- Joined
- Dec 8, 2005
- Messages
- 6,603
- Age
- 41
- Location
- UK
- Website
- pokeparadox.itch.io
- WEBSITE
- https://github.com/pokeparadox
- YOUTUBE
- pokeparadox
I am getting this error:
StateTitle.h:9: error: expected class-name before '{' token
:: === Build finished: 1 errors, 0 warnings ===
The code below is what relates to... anyone have an idea... I can't see what's wrong personally :S
CODE
#ifndef STATETITLE_H_INCLUDED
#define STATETITLE_H_INCLUDED
#include "BaseState.h"
/*
Title screen state to show title screen demo
*/
class StateTitle : public BaseState
{
public:
StateTitle();
virtual void init();
virtual void render(SDL_Surface *screen);
virtual void update();
virtual void keyboard();
virtual ~StateTitle();
};
#endif // STATETITLE_H_INCLUDED
StateTitle.h:9: error: expected class-name before '{' token
:: === Build finished: 1 errors, 0 warnings ===
The code below is what relates to... anyone have an idea... I can't see what's wrong personally :S
CODE
#ifndef STATETITLE_H_INCLUDED
#define STATETITLE_H_INCLUDED
#include "BaseState.h"
/*
Title screen state to show title screen demo
*/
class StateTitle : public BaseState
{
public:
StateTitle();
virtual void init();
virtual void render(SDL_Surface *screen);
virtual void update();
virtual void keyboard();
virtual ~StateTitle();
};
#endif // STATETITLE_H_INCLUDED