JohnJet
14-04-2010 20:41:18
Hi all,
I'm having some trouble getting the demos or my project to compile. The error I'm getting is:
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2005: "public: virtual __thiscall MyGUI::Exception::~Exception(void)" (??1Exception@MyGUI@@UAE@XZ) already defined in MyGUIEngine.lib(MyGUIEngine.dll)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2005: "public: virtual __thiscall MyGUI::Exception::~Exception(void)" (??1Exception@MyGUI@@UAE@XZ) already defined in MyGUIEngine.lib(MyGUIEngine.dll)
I'm using:
Visual Studio 2008
Ogre 1.7
MyGUI 3.0.1
The code I'm using is straight from the Wiki:
and
I'd really appreciate any help.
I'm having some trouble getting the demos or my project to compile. The error I'm getting is:
1>MyGUI.OgrePlatform.lib(MyGUI_OgreDataManager.obj) : error LNK2005: "public: virtual __thiscall MyGUI::Exception::~Exception(void)" (??1Exception@MyGUI@@UAE@XZ) already defined in MyGUIEngine.lib(MyGUIEngine.dll)
1>MyGUI.OgrePlatform.lib(MyGUI_OgreRenderManager.obj) : error LNK2005: "public: virtual __thiscall MyGUI::Exception::~Exception(void)" (??1Exception@MyGUI@@UAE@XZ) already defined in MyGUIEngine.lib(MyGUIEngine.dll)
I'm using:
Visual Studio 2008
Ogre 1.7
MyGUI 3.0.1
The code I'm using is straight from the Wiki:
mPlatform = new MyGUI::OgrePlatform();
mPlatform->initialise(rWindow, Ogre::Root::getSingletonPtr()->getSceneManager("sManager")); // mWindow is Ogre::RenderWindow*, mSceneManager is Ogre::SceneManager*
mGUI = new MyGUI::Gui();
mGUI->initialise();
and
MyGUI::LayoutManager::getInstance().load("escapemenu.layout");
// set callback
MyGUI::ButtonPtr button = mGUI->findWidget<MyGUI::Button>("MyFirstButton");
button->eventMouseButtonClick = MyGUI::newDelegate(this, &menuState::exit);
I'd really appreciate any help.