我打算把我在Mygui学习过程中所有产生的错误都记录下来,包括解决办法,有些暂时没有解决办法的,也先将报错记录下来。
我的环境如下:
+windows 7 64
+vs2010
+Mygui3.2.0
+Ogre_SDK_vc10_v1-8-1
警告1:
1>f:\ogre\ogresdk_vc10_v1-8-1\include\ogre\ogretextareaoverlayelement.h(227): warning C4251: “Ogre::TextAreaOverlayElement::msCmdAlignment”: class“Ogre::TextAreaOverlayElement::CmdAlignment”需要有 dll 接口由 class“Ogre::TextAreaOverlayElement”的客户端使用
1> f:\ogre\ogresdk_vc10_v1-8-1\include\ogre\ogretextareaoverlayelement.h(198) : 参见“Ogre::TextAreaOverlayElement::CmdAlignment”的声明
报错1.
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall MyGUI::UString::~UString(void)" (__imp_??1UString@MyGUI@@QAE@XZ),该符号在函数 "protected: virtual void __thiscall OgreApp1::createScene(void)" (?createScene@OgreApp1@@MAEXXZ) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall MyGUI::UString::UString(char const *)" (__imp_??0UString@MyGUI@@QAE@PBD@Z),该符号在函数 "protected: virtual void __thiscall OgreApp1::createScene(void)" (?createScene@OgreApp1@@MAEXXZ) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall MyGUI::Align::Align(enum MyGUI::Align::Enum)" (__imp_??0Align@MyGUI@@QAE@W4Enum@01@@Z),该符号在函数 "protected: virtual void __thiscall OgreApp1::createScene(void)" (?createScene@OgreApp1@@MAEXXZ) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall MyGUI::Gui::initialise(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?initialise@Gui@MyGUI@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "protected: virtual void __thiscall OgreApp1::createScene(void)" (?createScene@OgreApp1@@MAEXXZ) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall MyGUI::Gui::Gui(void)" (__imp_??0Gui@MyGUI@@QAE@XZ),该符号在函数 "protected: virtual void __thiscall OgreApp1::createScene(void)" (?createScene@OgreApp1@@MAEXXZ) 中被引用
1>OgreApp1.obj : error LNK2001: 无法解析的外部符号 "private: virtual void __thiscall MyGUI::Gui::_unlinkWidget(class MyGUI::Widget *)" (?_unlinkWidget@Gui@MyGUI@@EAEXPAVWidget@2@@Z)
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall MyGUI::OgreDataManager::OgreDataManager(void)" (??0OgreDataManager@MyGUI@@QAE@XZ),该符号在函数 "public: __thiscall MyGUI::OgrePlatform::OgrePlatform(void)" (??0OgrePlatform@MyGUI@@QAE@XZ) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall MyGUI::OgreRenderManager::OgreRenderManager(void)" (??0OgreRenderManager@MyGUI@@QAE@XZ),该符号在函数 "public: __thiscall MyGUI::OgrePlatform::OgrePlatform(void)" (??0OgrePlatform@MyGUI@@QAE@XZ) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall MyGUI::LogManager::LogManager(void)" (__imp_??0LogManager@MyGUI@@QAE@XZ),该符号在函数 "public: __thiscall MyGUI::OgrePlatform::OgrePlatform(void)" (??0OgrePlatform@MyGUI@@QAE@XZ) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall MyGUI::OgreDataManager::initialise(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?initialise@OgreDataManager@MyGUI@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "public: void __thiscall MyGUI::OgrePlatform::initialise(class Ogre::RenderWindow *,class Ogre::SceneManager *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?initialise@OgrePlatform@MyGUI@@QAEXPAVRenderWindow@Ogre@@PAVSceneManager@4@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2@Z) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall MyGUI::OgreRenderManager::initialise(class Ogre::RenderWindow *,class Ogre::SceneManager *)" (?initialise@OgreRenderManager@MyGUI@@QAEXPAVRenderWindow@Ogre@@PAVSceneManager@4@@Z),该符号在函数 "public: void __thiscall MyGUI::OgrePlatform::initialise(class Ogre::RenderWindow *,class Ogre::SceneManager *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?initialise@OgrePlatform@MyGUI@@QAEXPAVRenderWindow@Ogre@@PAVSceneManager@4@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2@Z) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall MyGUI::LogManager::createDefaultSource(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?createDefaultSource@LogManager@MyGUI@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "public: void __thiscall MyGUI::OgrePlatform::initialise(class Ogre::RenderWindow *,class Ogre::SceneManager *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?initialise@OgrePlatform@MyGUI@@QAEXPAVRenderWindow@Ogre@@PAVSceneManager@4@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2@Z) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class MyGUI::LogManager & __cdecl MyGUI::LogManager::getInstance(void)" (__imp_?getInstance@LogManager@MyGUI@@SAAAV12@XZ),该符号在函数 "public: void __thiscall MyGUI::OgrePlatform::initialise(class Ogre::RenderWindow *,class Ogre::SceneManager *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?initialise@OgrePlatform@MyGUI@@QAEXPAVRenderWindow@Ogre@@PAVSceneManager@4@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2@Z) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall MyGUI::Gui::~Gui(void)" (__imp_??1Gui@MyGUI@@UAE@XZ),该符号在函数 "public: virtual void * __thiscall MyGUI::Gui::`scalar deleting destructor'(unsigned int)" (??_GGui@MyGUI@@UAEPAXI@Z) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class MyGUI::Widget * __thiscall MyGUI::Gui::createWidgetT(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct MyGUI::types::TCoord<int> const &,struct MyGUI::Align,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?createWidgetT@Gui@MyGUI@@QAEPAVWidget@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0ABU?$TCoord@H@types@2@UAlign@2@00@Z),该符号在函数 "public: class MyGUI::Button * __thiscall MyGUI::Gui::createWidget<class MyGUI::Button>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,int,int,int,struct MyGUI::Align,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$createWidget@VButton@MyGUI@@@Gui@MyGUI@@QAEPAVButton@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HHHHUAlign@1@00@Z) 中被引用
1>OgreApp1.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __cdecl MyGUI::Button::getClassTypeName(void)" (__imp_?getClassTypeName@Button@MyGUI@@SAABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ),该符号在函数 "public: class MyGUI::Button * __thiscall MyGUI::Gui::createWidget<class MyGUI::Button>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,int,int,int,struct MyGUI::Align,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$createWidget@VButton@MyGUI@@@Gui@MyGUI@@QAEPAVButton@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HHHHUAlign@1@00@Z) 中被引用
1>bin\Debug\\OgreApp1.exe : fatal error LNK1120: 16 个无法解析的外部命令
1>
1>生成失败。
1>
1>已用时间 00:00:40.08
========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========
解决办法:
尝试过,但是没用的解决方法:
1.把Subsystem/Console改为Window;
解决办法:
http://zhidao.baidu.com/question/93637556.html
报错2:
LINK : fatal error LNK1104: 无法打开文件“MyGUI.OgrePlatform.lib”