在VC2005下配置OGRE环境时,遇到的问题总结

来源:互联网 发布:淘宝如何免费开店流程 编辑:程序博客网 时间:2024/06/06 08:39

错误
Preprocessor Definitions:::WIN32;_DEBUG;_CONSOLE
SubSystem:Windows (/SUBSYSTEM:WINDOWS)

1: error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR'
措施:Character Set :Use Multi-Byte Character Set
2:
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::startRendering(void)" (
__imp_?startRendering@Root@Ogre@@QAEXXZ) referenced in function "public: virtual void __thiscall ExampleApplication::go(void)" (?go@ExampleApplication@@UAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl Ogre::AllocatedObject<class Ogre::CategorisedAllocPolicy<0> >::operator delete(void *,char const *,int,char const *)" (
__imp_??3?$AllocatedObject@V?$CategorisedAllocPolicy@$0A@@Ogre@@@Ogre@@SAXPAXPBDH1@Z) referenced in function __unwindfunclet$?setup@ExampleApplication@@MAE_NXZ$0
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class Ogre::TextureManager & __cdecl Ogre::TextureManager::getSingleton(void)" (__imp_?getSingleton@TextureManager@Ogre@@SAAAV12@XZ) referenced in function "protected: virtual bool __thiscall ExampleApplication::setup(void)" (?setup@ExampleApplication@@MAE_NXZ)
1>11.obj : error LNK2019: unresolved external symbol "__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) referenced in function "protected: virtual bool __thiscall ExampleApplication::setup(void)" (?setup@ExampleApplication@@MAE_NXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void * __cdecl Ogre::AllocatedObject<class Ogre::CategorisedAllocPolicy<0> >::operator new(unsigned int,char const *,int,char const *)" (
__imp_??2?$AllocatedObject@V?$CategorisedAllocPolicy@$0A@@Ogre@@@Ogre@@SAPAXIPBDH0@Z) referenced in function "protected: virtual bool __thiscall ExampleApplication::setup(void)" (?setup@ExampleApplication@@MAE_NXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::RenderWindow * __thiscall Ogre::Root::initialise(bool,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_?initialise@Root@Ogre@@QAEPAVRenderWindow@2@_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@1@Z) referenced in function "protected: virtual bool __thiscall ExampleApplication::configure(void)" (?configure@ExampleApplication@@MAE_NXZ)
1>11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const Ogre::StringUtil::BLANK" (
__imp_?BLANK@StringUtil@Ogre@@2V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall Ogre::Root::showConfigDialog(void)" (
__imp_?showConfigDialog@Root@Ogre@@QAE_NXZ) referenced in function "protected: virtual bool __thiscall ExampleApplication::configure(void)" (?configure@ExampleApplication@@MAE_NXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::SceneManager * __thiscall Ogre::Root::createSceneManager(unsigned short,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (
__imp_?createSceneManager@Root@Ogre@@QAEPAVSceneManager@2@GABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "protected: virtual void __thiscall ExampleApplication::chooseSceneManager(void)" (?chooseSceneManager@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::lookAt(class Ogre::Vector3 const &)" (
__imp_?lookAt@Camera@Ogre@@QAEXABVVector3@2@@Z) referenced in function "protected: virtual void __thiscall ExampleApplication::createCamera(void)" (?createCamera@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::setPosition(class Ogre::Vector3 const &)" (
__imp_?setPosition@Camera@Ogre@@QAEXABVVector3@2@@Z) referenced in function "protected: virtual void __thiscall ExampleApplication::createCamera(void)" (?createCamera@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(float,float,float)" (
__imp_??0Vector3@Ogre@@QAE@MMM@Z) referenced in function "protected: virtual void __thiscall ExampleApplication::createCamera(void)" (?createCamera@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Root::addFrameListener(class Ogre::FrameListener *)" (
__imp_?addFrameListener@Root@Ogre@@QAEXPAVFrameListener@2@@Z) referenced in function "protected: virtual void __thiscall ExampleApplication::createFrameListener(void)" (?createFrameListener@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::WindowEventListener::~WindowEventListener(void)" (
__imp_??1WindowEventListener@Ogre@@UAE@XZ) referenced in function __unwindfunclet$??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z$2
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::FrameListener::~FrameListener(void)" (__imp_??1FrameListener@Ogre@@UAE@XZ) referenced in function __unwindfunclet$??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z$2
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl Ogre::WindowEventUtilities::addWindowEventListener(class Ogre::RenderWindow *,class Ogre::WindowEventListener *)" (__imp_?addWindowEventListener@WindowEventUtilities@Ogre@@SAXPAVRenderWindow@2@PAVWindowEventListener@2@@Z) referenced in function __catch$??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z$0
1>11.obj : error LNK2019: unresolved external symbol "__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) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::LogManager::logMessage(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum Ogre::LogMessageLevel,bool)" (
__imp_?logMessage@LogManager@Ogre@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4LogMessageLevel@2@_N@Z) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class Ogre::LogManager * __cdecl Ogre::LogManager::getSingletonPtr(void)" (
__imp_?getSingletonPtr@LogManager@Ogre@@SAPAV12@XZ) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::Overlay * __thiscall Ogre::OverlayManager::getByName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (
__imp_?getByName@OverlayManager@Ogre@@QAEPAVOverlay@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class Ogre::OverlayManager & __cdecl Ogre::OverlayManager::getSingleton(void)" (
__imp_?getSingleton@OverlayManager@Ogre@@SAAAV12@XZ) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
1>11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class Ogre::Vector3 const Ogre::Vector3::ZERO" (
__imp_?ZERO@Vector3@Ogre@@2V12@B)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::WindowEventListener::WindowEventListener(void)" (
__imp_??0WindowEventListener@Ogre@@QAE@XZ) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::FrameListener::FrameListener(void)" (
__imp_??0FrameListener@Ogre@@QAE@XZ) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
1>11.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::FrameListener::frameStarted(struct Ogre::FrameEvent const &)" (
?frameStarted@FrameListener@Ogre@@UAE_NABUFrameEvent@2@@Z)
1>11.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::WindowEventListener::windowMoved(class Ogre::RenderWindow *)" (
?windowMoved@WindowEventListener@Ogre@@UAEXPAVRenderWindow@2@@Z)
1>11.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Ogre::WindowEventListener::windowClosing(class Ogre::RenderWindow *)" (
?windowClosing@WindowEventListener@Ogre@@UAE_NPAVRenderWindow@2@@Z)
1>11.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::WindowEventListener::windowFocusChange(class Ogre::RenderWindow *)" (
?windowFocusChange@WindowEventListener@Ogre@@UAEXPAVRenderWindow@2@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned int,unsigned short,char,int)" (
__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IGDH@Z) referenced in function "protected: virtual void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(unsigned long,unsigned short,char,int)" (
__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KGDH@Z) referenced in function "protected: virtual void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(float,unsigned short,unsigned short,char,int)" (
__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@MGGDH@Z) referenced in function "protected: virtual void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::OverlayElement * __thiscall Ogre::OverlayManager::getOverlayElement(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (
__imp_?getOverlayElement@OverlayManager@Ogre@@QAEPAVOverlayElement@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) referenced in function "protected: virtual void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct OIS::MouseState const & __thiscall OIS::Mouse::getMouseState(void)const " (
__imp_?getMouseState@Mouse@OIS@@QBEABUMouseState@2@XZ) referenced in function "public: virtual void __thiscall ExampleFrameListener::windowResized(class Ogre::RenderWindow *)" (?windowResized@ExampleFrameListener@@UAEXPAVRenderWindow@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl OIS::InputManager::destroyInputSystem(class OIS::InputManager *)" (
__imp_?destroyInputSystem@InputManager@OIS@@SAXPAV12@@Z) referenced in function "public: virtual void __thiscall ExampleFrameListener::windowClosed(class Ogre::RenderWindow *)" (?windowClosed@ExampleFrameListener@@UAEXPAVRenderWindow@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre::Vector3 const &)" (
__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVVector3@2@@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 const & __thiscall Ogre::Camera::getDerivedPosition(void)const " (
__imp_?getDerivedPosition@Camera@Ogre@@QBEABVVector3@2@XZ) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Ogre::StringConverter::toString(class Ogre::Quaternion const &)" (
__imp_?toString@StringConverter@Ogre@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVQuaternion@2@@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::Quaternion const & __thiscall Ogre::Camera::getDerivedOrientation(void)const " (
__imp_?getDerivedOrientation@Camera@Ogre@@QBEABVQuaternion@2@XZ) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::setPolygonMode(enum Ogre::PolygonMode)" (
__imp_?setPolygonMode@Camera@Ogre@@QAEXW4PolygonMode@2@@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::RenderTarget::writeContentsToFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (
__imp_?writeContentsToFile@RenderTarget@Ogre@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MaterialManager::setDefaultAnisotropy(unsigned int)" (
__imp_?setDefaultAnisotropy@MaterialManager@Ogre@@QAEXI@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class Ogre::MaterialManager & __cdecl Ogre::MaterialManager::getSingleton(void)" (
__imp_?getSingleton@MaterialManager@Ogre@@SAAAV12@XZ) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::yaw(class Ogre::Radian const &)" (
__imp_?yaw@Camera@Ogre@@QAEXABVRadian@2@@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedKeyInput(struct Ogre::FrameEvent const &)" (?processUnbufferedKeyInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static float __cdecl Ogre::Math::DegreesToRadians(float)" (
__imp_?DegreesToRadians@Math@Ogre@@SAMM@Z) referenced in function "public: float __thiscall Ogre::Degree::valueRadians(void)const " (?valueRadians@Degree@Ogre@@QBEMXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall OIS::MouseState::buttonDown(enum OIS::MouseButtonID)const " (
__imp_?buttonDown@MouseState@OIS@@QBE_NW4MouseButtonID@2@@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::processUnbufferedMouseInput(struct Ogre::FrameEvent const &)" (?processUnbufferedMouseInput@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::moveRelative(class Ogre::Vector3 const &)" (
__imp_?moveRelative@Camera@Ogre@@QAEXABVVector3@2@@Z) referenced in function "public: virtual void __thiscall ExampleFrameListener::moveCamera(void)" (?moveCamera@ExampleFrameListener@@UAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::pitch(class Ogre::Radian const &)" (
__imp_?pitch@Camera@Ogre@@QAEXABVRadian@2@@Z) referenced in function "public: virtual void __thiscall ExampleFrameListener::moveCamera(void)" (?moveCamera@ExampleFrameListener@@UAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::hide(void)" (
__imp_?hide@Overlay@Ogre@@QAEXXZ) referenced in function "public: virtual void __thiscall ExampleFrameListener::showDebugOverlay(bool)" (?showDebugOverlay@ExampleFrameListener@@UAEX_N@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::show(void)" (
__imp_?show@Overlay@Ogre@@QAEXXZ) referenced in function "public: virtual void __thiscall ExampleFrameListener::showDebugOverlay(bool)" (?showDebugOverlay@ExampleFrameListener@@UAEX_N@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 & __thiscall Ogre::Vector3::operator*=(float)" (
__imp_??XVector3@Ogre@@QAEAAV01@M@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::frameRenderingQueued(struct Ogre::FrameEvent const &)" (?frameRenderingQueued@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall Ogre::Vector3::operator==(class Ogre::Vector3 const &)const " (
__imp_??8Vector3@Ogre@@QBE_NABV01@@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::frameRenderingQueued(struct Ogre::FrameEvent const &)" (?frameRenderingQueued@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::Vector3 & __thiscall Ogre::Vector3::operator=(class Ogre::Vector3 const &)" (
__imp_??4Vector3@Ogre@@QAEAAV01@ABV01@@Z) referenced in function "public: virtual bool __thiscall ExampleFrameListener::frameRenderingQueued(struct Ogre::FrameEvent const &)" (?frameRenderingQueued@ExampleFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl Ogre::WindowEventUtilities::removeWindowEventListener(class Ogre::RenderWindow *,class Ogre::WindowEventListener *)" (
__imp_?removeWindowEventListener@WindowEventUtilities@Ogre@@SAXPAVRenderWindow@2@PAVWindowEventListener@2@@Z) referenced in function "public: virtual __thiscall ExampleFrameListener::~ExampleFrameListener(void)" (??1ExampleFrameListener@@UAE@XZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualHeight(void)const " (
__imp_?getActualHeight@Viewport@Ogre@@QBEHXZ) referenced in function "protected: virtual void __thiscall ExampleApplication::createViewports(void)" (?createViewports@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall Ogre::Viewport::getActualWidth(void)const " (
__imp_?getActualWidth@Viewport@Ogre@@QBEHXZ) referenced in function "protected: virtual void __thiscall ExampleApplication::createViewports(void)" (?createViewports@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Viewport::setBackgroundColour(class Ogre::ColourValue const &)" (
__imp_?setBackgroundColour@Viewport@Ogre@@QAEXABVColourValue@2@@Z) referenced in function "protected: virtual void __thiscall ExampleApplication::createViewports(void)" (?createViewports@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ColourValue::ColourValue(float,float,float,float)" (
__imp_??0ColourValue@Ogre@@QAE@MMMM@Z) referenced in function "protected: virtual void __thiscall ExampleApplication::createViewports(void)" (?createViewports@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Ogre::ConfigFile::~ConfigFile(void)" (
__imp_??1ConfigFile@Ogre@@UAE@XZ) referenced in function "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::ResourceGroupManager::addResourceLocation(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 &,bool)" (
__imp_?addResourceLocation@ResourceGroupManager@Ogre@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00_N@Z) referenced in function "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class Ogre::ResourceGroupManager & __cdecl Ogre::ResourceGroupManager::getSingleton(void)" (
__imp_?getSingleton@ResourceGroupManager@Ogre@@SAAAV12@XZ) referenced in function "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Ogre::MapIterator<class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,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> > > > > *,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::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> > > > > *> > > > __thiscall Ogre::ConfigFile::getSectionIterator(void)" (
__imp_?getSectionIterator@ConfigFile@Ogre@@QAE?AV?$MapIterator@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAV?$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@@2@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@@PAV?$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@@2@@std@@@2@@std@@@2@XZ) referenced in function "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::ConfigFile::load(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 &,bool)" (
__imp_?load@ConfigFile@Ogre@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0_N@Z) referenced in function "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::ConfigFile::ConfigFile(void)" (
__imp_??0ConfigFile@Ogre@@QAE@XZ) referenced in function "protected: virtual void __thiscall ExampleApplication::setupResources(void)" (?setupResources@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::ResourceGroupManager::initialiseAllResourceGroups(void)" (
__imp_?initialiseAllResourceGroups@ResourceGroupManager@Ogre@@QAEXXZ) referenced in function "protected: virtual void __thiscall ExampleApplication::loadResources(void)" (?loadResources@ExampleApplication@@MAEXXZ)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl Ogre::AllocatedObject<class Ogre::CategorisedAllocPolicy<0> >::operator delete(void *)" (
__imp_??3?$AllocatedObject@V?$CategorisedAllocPolicy@$0A@@Ogre@@@Ogre@@SAXPAX@Z) referenced in function "public: void * __thiscall Ogre::Root::`scalar deleting destructor'(
unsigned int)" (
??_GRoot@Ogre@@QAEPAXI@Z)
1>11.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Ogre::Root::~Root(void)" (
__imp_??1Root@Ogre@@QAE@XZ) referenced in function "public: void * __thiscall Ogre::Root::`scalar deleting destructor'(unsigned int)" (??_GRoot@Ogre@@QAEPAXI@Z)
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:/Users/Administrator/Documents/Visual Studio 2005/Projects/testOK/Debug/testOK.exe : fatal error LNK1120: 67 unresolved externals


措施:
Additional include directory:"$(OGRE_HOME)/include";C:/OgreSDK/include

无效
linker:
additional dependencies:ogremain.lib  ois.lib


3:1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:/Users/Administrator/Documents/Visual Studio 2005/Projects/testOK/Debug/testOK.exe : fatal error LNK1120: 1 unresolved externals

 

措施:SubSystem:windows(/subsystem:windows)
编译通过

4:丢失Ogremain_d.dll
解决方案:working directory :C:/OgreSDK/bin/debug

5:应用程序无法正常启动0xc150002
解决方案:重装系统

原创粉丝点击