Code: Select all
class gGUIManager : public CEGUI::Singleton<gGUIManager>
{
private:
static gGUIManager guiMgr;
CEGUI::OpenGLRenderer *renderer;
CEGUI::Window *rootWnd;
CEGUI::WindowManager *wndMgr;
bool initialized;
public:
gGUIManager(int w, int h);
};
Heres the contructor code:
Code: Select all
gGUIManager::gGUIManager(int w, int h)
{
static_cast<gGUIManager*>(this->ms_Singleton)->renderer =
new CEGUI::OpenGLRenderer(0, w, h);
new CEGUI::System(static_cast<gGUIManager*>(this->ms_Singleton)->renderer);
static_cast<gGUIManager*>(this->ms_Singleton)->wndMgr = CEGUI::WindowManager::getSingletonPtr();
}
Heres the errors:
Code: Select all
Error 1 error LNK2001: unresolved external symbol "__declspec(dllimport) protected: static class gGUIManager * CEGUI::Singleton<class gGUIManager>::ms_Singleton" (__imp_?ms_Singleton@?$Singleton@VgGUIManager@@@CEGUI@@1PAVgGUIManager@@A) release.obj
Error 2 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::Singleton<class gGUIManager>::~Singleton<class gGUIManager>(void)" (__imp_??1?$Singleton@VgGUIManager@@@CEGUI@@QAE@XZ) release.obj
Error 3 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::Singleton<class gGUIManager>::Singleton<class gGUIManager>(void)" (__imp_??0?$Singleton@VgGUIManager@@@CEGUI@@QAE@XZ) release.obj
Error 4 fatal error LNK1120: 3 unresolved externals C:\Documents and Settings\jimsag01\Mina dokument\c++\VS Projects\gEngine\\bin\release\gEngine.exe
Are there some methods I need to override maybe?
Anyone have a clue?