OGRE v1.6.4 and CEGUI-0.7.1
Posted: Tue Nov 17, 2009 10:51
Hi
I'm trying to upgrade my ogre application to CEGUI-0.7.1 so i download CEGUI-0.7.1 and build it like this:
http://www.ogre3d.org/wiki/index.php/Building_CEGUI
and i get all .lib and .dll files I need without any problems.
When i copy .dll and .lib files to my ogre application and run it I get this error:
I open application project and rebuild it but get some linker errors:
Ogre.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CEGUI::System::~System(void)" (__imp_??1System@CEGUI@@UAE@XZ)
Ogre.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CEGUI::System::~System(void)" (__imp_??1System@CEGUI@@UAE@XZ)
Ogre.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::System::System(class CEGUI::Renderer *,class CEGUI::ResourceProvider *,class CEGUI::XMLParser *,class CEGUI::ScriptModule *,class CEGUI::String const &,class CEGUI::String const &)" (__imp_??0System@CEGUI@@QAE@PAVRenderer@1@PAVResourceProvider@1@PAVXMLParser@1@PAVScriptModule@1@ABVString@1@4@Z)
Ogre.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CEGUI::Scheme * __thiscall CEGUI::SchemeManager::loadScheme(class CEGUI::String const &,class CEGUI::String const &)" (__imp_?loadScheme@SchemeManager@CEGUI@@QAEPAVScheme@2@ABVString@2@0@Z)
.\Release\ChessOnline\ChessOnline.exe : fatal error LNK1120: 3 unresolved externals
My next idea was replace CEGUI include files from my application with new one from CEGUI-0.7.1 and I get new (this time compilation) error:
e:\Programowanie\Visual Studio\ChessOnline\ogre\OgreCEGUIRenderer.h(459) : error C2555: 'CEGUI::OgreCEGUIRenderer::createTexture': overriding virtual function return type differs and is not covariant from 'CEGUI::Renderer::createTexture'
e:\Programowanie\Visual Studio\ChessOnline\ogre\CEGUI/CEGUIRenderer.h(169) : see declaration of 'CEGUI::Renderer::createTexture'
e:\Programowanie\Visual Studio\ChessOnline\ogre\OgreCEGUIRenderer.h(459) : error C2555: 'CEGUI::OgreCEGUIRenderer::createTexture': overriding virtual function return type differs and is not covariant from 'CEGUI::Renderer::createTexture'
e:\Programowanie\Visual Studio\ChessOnline\ogre\CEGUI/CEGUIRenderer.h(145) : see declaration of 'CEGUI::Renderer::createTexture'
I have no idea what I'm doing wrong.
I'm trying to upgrade my ogre application to CEGUI-0.7.1 so i download CEGUI-0.7.1 and build it like this:
http://www.ogre3d.org/wiki/index.php/Building_CEGUI
and i get all .lib and .dll files I need without any problems.
When i copy .dll and .lib files to my ogre application and run it I get this error:
I open application project and rebuild it but get some linker errors:
Ogre.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CEGUI::System::~System(void)" (__imp_??1System@CEGUI@@UAE@XZ)
Ogre.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CEGUI::System::~System(void)" (__imp_??1System@CEGUI@@UAE@XZ)
Ogre.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::System::System(class CEGUI::Renderer *,class CEGUI::ResourceProvider *,class CEGUI::XMLParser *,class CEGUI::ScriptModule *,class CEGUI::String const &,class CEGUI::String const &)" (__imp_??0System@CEGUI@@QAE@PAVRenderer@1@PAVResourceProvider@1@PAVXMLParser@1@PAVScriptModule@1@ABVString@1@4@Z)
Ogre.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CEGUI::Scheme * __thiscall CEGUI::SchemeManager::loadScheme(class CEGUI::String const &,class CEGUI::String const &)" (__imp_?loadScheme@SchemeManager@CEGUI@@QAEPAVScheme@2@ABVString@2@0@Z)
.\Release\ChessOnline\ChessOnline.exe : fatal error LNK1120: 3 unresolved externals
My next idea was replace CEGUI include files from my application with new one from CEGUI-0.7.1 and I get new (this time compilation) error:
e:\Programowanie\Visual Studio\ChessOnline\ogre\OgreCEGUIRenderer.h(459) : error C2555: 'CEGUI::OgreCEGUIRenderer::createTexture': overriding virtual function return type differs and is not covariant from 'CEGUI::Renderer::createTexture'
e:\Programowanie\Visual Studio\ChessOnline\ogre\CEGUI/CEGUIRenderer.h(169) : see declaration of 'CEGUI::Renderer::createTexture'
e:\Programowanie\Visual Studio\ChessOnline\ogre\OgreCEGUIRenderer.h(459) : error C2555: 'CEGUI::OgreCEGUIRenderer::createTexture': overriding virtual function return type differs and is not covariant from 'CEGUI::Renderer::createTexture'
e:\Programowanie\Visual Studio\ChessOnline\ogre\CEGUI/CEGUIRenderer.h(145) : see declaration of 'CEGUI::Renderer::createTexture'
I have no idea what I'm doing wrong.