Multiply defined symbols

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:
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.

seidan

24-04-2010 17:27:29

hi
can you solve the problem???

Altren

25-04-2010 23:14:26

Hm, I'm not sure why this happens.
Try this http://my-gui.svn.sourceforge.net/viewv ... z?view=tar (aka MyGUI 3.0.2)

JohnJet

08-05-2010 00:22:36

Sorry for the late update. I had reverted to MyGUI 3.0.0 and everything worked smoothly. The 3.0.2 build you posted also builds fine. Thanks for the help.