Original Post
I have a small problem that appeared when I was doing something entirely unrelated to where the problem is. I have been working on something small with a friend who wanted to create a simple framework. I agreed to help him. Basically the message log is thus: Now the top of the file Sprite.hpp looks as thus: I've tried moving the order of includes and forward declaring but neither work. I'm completely stumped and I can't build my project until this works.
Compiling: Entity.cpp
In file included from C:\Users\George Gough\Documents\Seven Wishes\Source\Window.hpp:17,
from C:\Users\George Gough\Documents\Wishes\Source\Gui.hpp:13,
from C:\Users\George Gough\Documents\Wishes\Source\Renderer.hpp:20,
from C:\Users\George Gough\Documents\Wishes\Source\Entity.hpp:15,
from C:\Users\George Gough\Documents\Wishes\Source\Entity.cpp:9:
C:\Users\George Gough\Documents\Wishes\Source\Sprite.hpp:22: error: invalid use of undefined type `struct Entity'
C:\Users\George Gough\Documents\Wishes\Source\Sprite.hpp:20: error: forward declaration of `struct Entity'
In file included from C:\Users\George Gough\Documents\Wishes\Source\Gui.hpp:13,
from C:\Users\George Gough\Documents\Wishes\Source\Renderer.hpp:20,
from C:\Users\George Gough\Documents\Wishes\Source\Entity.hpp:15,
from C:\Users\George Gough\Documents\Wishes\Source\Entity.cpp:9:
C:\Users\George Gough\Documents\Wishes\Source\Window.hpp:20: error: invalid use of undefined type `struct Entity'
C:\Users\George Gough\Documents\Wishes\Source\Sprite.hpp:20: error: forward declaration of `struct Entity'
Process terminated with status 1 (0 minutes, 0 seconds)
4 errors, 0 warnings
#include <string>
#include "Entity.hpp"
#include "Vector.hpp"
#include "Texture.hpp"
#include "Renderer.hpp"
class Renderer;
class Entity;
class Sprite : public Entity {