Does not name a type error

I'm getting a "KeyboardInput does not name a type" error on line 17 of game.h. As far as I know, the class has been properly defined and is included in game.h, and there are no spelling mistakes.

keyboardinput.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#ifndef KEYBOARDINPUT_H
#define KEYBOARDINPUT_H

#include <queue>
#include <set>
#include "SDL.h"
#include "input.h"

namespace Stage {

	class KeyboardInput : public Input {
		private:
			SDL_Event personal_event;
		public:
			KeyboardInput();
			~KeyboardInput();
			void poll();
			
	};
}
#endif 


game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#ifndef GAME_H
#define GAME_H

#include "entrypoint.h"
#include "keyboardinput.h"

namespace Stage {
	class Game {
			private:
				EntryPoint game_entry;
				void GameLoop();
				KeyboardInput test_keyboard;
			public:
				Game(EntryPoint& userEntryPoint);
	};
}
#endif 


Check for circular includes.
I don't think I see any...
oh, figured it out! Since I copy-pasted include guards in other files, I accidentally #defined multiple KEYBOARDINPUT_Hes. Phew. Thanks!
Topic archived. No new replies allowed.