myGUI first timer help needed

Eyenstyn

12-07-2008 10:32:38

Hi i am busy with a group project and get some compiler errors when i integerate mygui with the project.

I have downloaded the svn repositories for mygui and compiled it succesfully. I have linked my project to the myGuiEngine include directory and started to build from there in MSVS 2005 SP1, i am also using Ogre 1.4.6.

Linking...
Game_FrameListener.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall MyGUI::Gui::windowResized(class Ogre::RenderWindow *)" (__imp_?windowResized@Gui@MyGUI@@UAEXPAVRenderWindow@Ogre@@@Z)
Game_FrameListener.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall MyGUI::Gui::~Gui(void)" (__imp_??1Gui@MyGUI@@UAE@XZ)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::Widget::setNeedMouseFocus(bool)" (__imp_?setNeedMouseFocus@Widget@MyGUI@@QAEX_N@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class MyGUI::Widget * __thiscall MyGUI::Widget::createWidgetT(class std::basic_string,class std::allocator > const &,class std::basic_string,class std::allocator > const &,struct types::TCoord const &,unsigned char,class std::basic_string,class std::allocator > const &)" (__imp_?createWidgetT@Widget@MyGUI@@QAEPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0ABU?$TCoord@H@types@@E0@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: static class std::basic_string,class std::allocator > MyGUI::StaticText::WidgetTypeName" (__imp_?WidgetTypeName@StaticText@MyGUI@@1V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@A)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::RenderBox::setMouseRotation(bool)" (__imp_?setMouseRotation@RenderBox@MyGUI@@QAEX_N@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::RenderBox::setRotationAngle(class Ogre::Degree const &)" (__imp_?setRotationAngle@RenderBox@MyGUI@@QAEXABVDegree@Ogre@@@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::RenderBox::setBackgroungColour(class Ogre::ColourValue const &)" (__imp_?setBackgroungColour@RenderBox@MyGUI@@QAEXABVColourValue@Ogre@@@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::RenderBox::injectObject(class std::basic_string,class std::allocator > const &,class Ogre::Vector3 const &,class Ogre::Quaternion const &,class Ogre::Vector3 const &)" (__imp_?injectObject@RenderBox@MyGUI@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVVector3@Ogre@@ABVQuaternion@6@1@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::StaticImage::setImageInfo(class std::basic_string,class std::allocator > const &,struct types::TRect const &,struct types::TSize const &)" (__imp_?setImageInfo@StaticImage@MyGUI@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABU?$TRect@H@types@@ABU?$TSize@H@6@@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::Progress::setProgressStartPoint(unsigned char)" (__imp_?setProgressStartPoint@Progress@MyGUI@@QAEXE@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::Progress::setProgressAutoTrack(bool)" (__imp_?setProgressAutoTrack@Progress@MyGUI@@QAEX_N@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::Progress::setProgressFillTrack(bool)" (__imp_?setProgressFillTrack@Progress@MyGUI@@QAEX_N@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::WidgetManager::destroyWidgetsVector(class std::vector > &)" (__imp_?destroyWidgetsVector@WidgetManager@MyGUI@@QAEXAAV?$vector@PAVWidget@MyGUI@@V?$allocator@PAVWidget@MyGUI@@@std@@@std@@@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::Progress::setProgressPosition(unsigned int)" (__imp_?setProgressPosition@Progress@MyGUI@@QAEXI@Z)
GuiManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall MyGUI::Progress::setProgressRange(unsigned int)" (__imp_?setProgressRange@Progress@MyGUI@@QAEXI@Z)
bin\Release\Game_Engine.exe : fatal error LNK1120: 16 unresolved externals


Sorry for the messy code, i dont know how to past code properly.

Altren

12-07-2008 12:48:10

Looks like you forgot to link MyGUI.lib.

Eyenstyn

12-07-2008 17:04:24

Thanx that was the problem. I know have to link the other addons properly as well, such as newton.

Eyenstyn

13-07-2008 16:57:23

I seem to get a memory access violation as well. I think may have to do with the FONT_DEFAULT setting. Is there a font i need to add to windows?

Error:Unhandled exception at 0x004abf45 (MyGUI.dll) in Game_Engine.exe: 0xC0000005: Access violation writing location 0x02891808.

Place in code for error: mygui_font.cpp
340> else *pDest++= FONT_MASK_CHAR;