|
求大虾指教,为什么我按照网上的环境配置方法能把ogreSDK中的样例跑出来,自己编的程序却显示:
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Root::startRendering(void)" (__imp_?startRendering@Root@Ogre@@QAEXXZ),该符号在函数 "public: virtual void __thiscall ExampleApplication::go(void)" (?go@ExampleApplication@@UAEXXZ) 中被引用
1>aaaa.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl Ogre::AllocatedObject<class Ogre::CategorisedAllocPolicy<0> >: perator delete(void *,char const *,int,char const *)" (__imp_??3?$AllocatedObject@V?$CategorisedAllocPolicy@$0A@@Ogre@@@Ogre@@SAXPAXPBDH1@Z),该符号在函数 __unwindfunclet$?setup@ExampleApplication@@MAE_NXZ$0 中被引用
1>aaaa.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class Ogre::TextureManager & __cdecl Ogre::TextureManager::getSingleton(void)" (__imp_?getSingleton@TextureManager@Ogre@@SAAAV12@XZ),该符号在函数 "protected: virtual bool __thiscall ExampleApplication::setup(void)" (?setup@ExampleApplication@@MAE_NXZ) 中被引用
1>aaaa.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::Root::Root(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 &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0Root@Ogre@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z),该符号在函数 "protected: virtual bool __thiscall ExampleApplication::setup(void)" (?setup@ExampleApplication@@MAE_NXZ) 中被引用
1>aaaa.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class OIS::Object * __thiscall OIS::InputManager::createInputObject(enum OIS::Type,bool,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?createInputObject@InputManager@OIS@@QAEPAVObject@2@W4Type@2@_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
1>aaaa.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class OIS::InputManager * __cdecl OIS::InputManager::createInputSystem(class std::multimap<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<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> > > > > &)" (__imp_?createInputSystem@InputManager@OIS@@SAPAV12@AAV?$multimap@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@std@@@Z),该符号在函数 "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z) 中被引用
1>D:\ogre workplace\ogre_test2\afjafajldfakdfj\Debug\afjafajldfakdfj.exe : fatal error LNK1120: 70 个无法解析的外部命令
1>生成日志保存在“file://d:\ogre workplace\ogre_test2\afjafajldfakdfj\afjafajldfakdfj\Debug\BuildLog.htm”
1>afjafajldfakdfj - 71 个错误,5 个警告
========== 全部重新生成: 成功 0 个,失败 1 个,跳过 0 个 ==========
这是什么情况,求帮助。。。。。。 |
|