class SpriteBatch
{
public:
~SpriteBatch(); // public destructor
static SpriteBatch* GetInstance(void); // retunrs singleton instance
private:
static SpriteBatch* instance; // singleton instance pointer
SpriteBatch(); // private constructor
};
on the source im just doing this
SpriteBatch* SpriteBatch::GetInstance()
{
if (!instance)
{
instance = new SpriteBatch;
}
return instance;
}
Im getting the following error
Error 1 error LNK2001: unresolved external symbol "private: static class SpriteBatch * SpriteBatch::instance" (?instance@SpriteBatch@@0PAV1@A) E:\Opengl Game\Engine\SpriteBatch.obj Engine
Ive made sure to include "SpriteBatch.h" at the source so Im out of ideas...