dest
05-12-2008 21:55:19
Just starting off using MyGUI and I'm trying to get the quickstart tutorial going. Everything works up to and including creating the GUI and calling initialise. However as soon as I call GUI->createWidget I get a linker error. Here's the first one of four -
And this is the line that causes it -
MyGUI_d.lib is being linked along with OgreMain_d.lib and OIS_d.lib, so I've no idea where this is coming from. I'm using Visual Studio 2003, is it possible that's causing the problem? I compiled MyGUI from source in VS2003 aswell. Any help would be much appreciated.
Cheers.
gui error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall MyGUI::Align::Align(int)" (__imp_??0Align@MyGUI@@QAE@H@Z) referenced in function "public: __thiscall guiFrameListener::guiFrameListener(class Ogre::SceneManager *,class Ogre::RenderWindow *,class Ogre::Camera *,class MyGUI::Gui *)" (??0guiFrameListener@@QAE@PAVSceneManager@Ogre@@PAVRenderWindow@2@PAVCamera@2@PAVGui@MyGUI@@@Z)
And this is the line that causes it -
MyGUI::ButtonPtr button = mGUI->createWidget<MyGUI::Button>("Button", 10, 10, 300, 26, MyGUI::ALIGN_DEFAULT, "Main");
MyGUI_d.lib is being linked along with OgreMain_d.lib and OIS_d.lib, so I've no idea where this is coming from. I'm using Visual Studio 2003, is it possible that's causing the problem? I compiled MyGUI from source in VS2003 aswell. Any help would be much appreciated.
Cheers.