游戏开发论坛

 找回密码
 立即注册
搜索
查看: 6067|回复: 9

HELP ORGE 编译错误

[复制链接]

7

主题

88

帖子

88

积分

注册会员

Rank: 2

积分
88
QQ
发表于 2007-7-15 12:02:00 | 显示全部楼层 |阅读模式
main.cpp
d:\ogresdk\include\OgreParticleEmitter.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
d:\ogresdk\include\OgreParticleSystem.h(606) : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
D:\platform\include\specstrings.h(334) : warning C4005: '__reserved' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(702) : see previous definition of '__reserved'
D:\platform\include\specstrings.h(341) : warning C4005: '__checkReturn' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(703) : see previous definition of '__checkReturn'
D:\platform\include\specstrings.h(344) : warning C4005: '__typefix' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(704) : see previous definition of '__typefix'
D:\platform\include\specstrings.h(349) : warning C4005: '__override' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(705) : see previous definition of '__override'
D:\platform\include\specstrings.h(350) : warning C4005: '__fallthrough' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(714) : see previous definition of '__fallthrough'
D:\platform\include\specstrings.h(351) : warning C4005: '__callback' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(706) : see previous definition of '__callback'
D:\platform\include\specstrings.h(352) : warning C4005: '__in' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(499) : see previous definition of '__in'
D:\platform\include\specstrings.h(353) : warning C4005: '__out' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(508) : see previous definition of '__out'
D:\platform\include\specstrings.h(354) : warning C4005: '__inout' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(527) : see previous definition of '__inout'
D:\platform\include\specstrings.h(356) : warning C4005: '__out_ecount' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(509) : see previous definition of '__out_ecount'
D:\platform\include\specstrings.h(357) : warning C4005: '__in_ecount' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(500) : see previous definition of '__in_ecount'
D:\platform\include\specstrings.h(358) : warning C4005: '__inout_ecount' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(528) : see previous definition of '__inout_ecount'
D:\platform\include\specstrings.h(359) : warning C4005: '__out_bcount' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(510) : see previous definition of '__out_bcount'
D:\platform\include\specstrings.h(360) : warning C4005: '__in_bcount' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(501) : see previous definition of '__in_bcount'
D:\platform\include\specstrings.h(361) : warning C4005: '__inout_bcount' : macro redefinition
        D:\Microsoft Visual Studio 8\VC\include\sal.h(529) : see previous definition of '__inout_bcount'
.\main.cpp(22) : error C2065: 'MB_IConERROR' : undeclared identifier
Build log was saved at "file://e:\OGRE\first\first\first\Debug\BuildLog.htm"
first - 1 error(s), 17 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



这是什么原因造成的,
请高手指点一下!!!

7

主题

36

帖子

51

积分

注册会员

Rank: 2

积分
51
发表于 2007-7-15 14:48:00 | 显示全部楼层

Re:HELP ORGE 编译错误

先保存为Unicode(带签名)格式。(文件->高级保存选项)
再试试。

7

主题

88

帖子

88

积分

注册会员

Rank: 2

积分
88
QQ
 楼主| 发表于 2007-7-15 23:01:00 | 显示全部楼层

Re: HELP ORGE 编译错误

谢谢 楼上的
但是又有新问题了???

------ Build started: Project: first, Configuration: Debug Win32 ------
Linking...
main.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)
main.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)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::hide(void)" (__imp_?hide@Overlay@Ogre@@QAEXXZ) referenced in function "public: void __thiscall ExampleFrameListener::showDebugOverlay(bool)" (?showDebugOverlay@ExampleFrameListener@@QAEX_N@Z)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Overlay::show(void)" (__imp_?show@Overlay@Ogre@@QAEXXZ) referenced in function "public: void __thiscall ExampleFrameListener::showDebugOverlay(bool)" (?showDebugOverlay@ExampleFrameListener@@QAEX_N@Z)
main.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)
main.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)
main.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)
main.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)
main.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::loadResources(void)" (?loadResources@ExampleApplication@@MAEXXZ)
main.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)
main.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)
main.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 &)" (__imp_?initialise@Root@Ogre@@QAEPAVRenderWindow@2@_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "protected: virtual bool __thiscall ExampleApplication::configure(void)" (?configure@ExampleApplication@@MAE_NXZ)
main.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)
main.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)
main.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)
main.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)
main.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)
main.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)
main.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)
main.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)
main.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)
main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function __catch$_WinMain@16$0
main.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
main.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
main.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
main.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)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre:ogManager::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)
main.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)
main.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)
main.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)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class Ogre::Vector3 const Ogre::Vector3::ZERO" (__imp_?ZERO@Vector3@Ogre@@2V12@B) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const Ogre::FrameListener::`vftable'" (__imp_??_7FrameListener@Ogre@@6B@) referenced in function "public: __thiscall ExampleFrameListener::ExampleFrameListener(class Ogre::RenderWindow *,class Ogre::Camera *,bool,bool,bool)" (??0ExampleFrameListener@@QAE@PAVRenderWindow@Ogre@@PAVCamera@2@_N22@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::WindowEventListener::windowMoved(class Ogre::RenderWindow *)" (?windowMoved@WindowEventListener@Ogre@@UAEXPAVRenderWindow@2@@Z)
main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Ogre::WindowEventListener::windowFocusChange(class Ogre::RenderWindow *)" (?windowFocusChange@WindowEventListener@Ogre@@UAEXPAVRenderWindow@2@@Z)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static float const Ogre::Math::fDeg2Rad" (__imp_?fDeg2Rad@Math@Ogre@@2MB) referenced in function "public: float __thiscall Ogre:egree::valueRadians(void)const " (?valueRadians@Degree@Ogre@@QBEMXZ)
main.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)
main.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: void __thiscall ExampleFrameListener::moveCamera(void)" (?moveCamera@ExampleFrameListener@@QAEXXZ)
main.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: void __thiscall ExampleFrameListener::moveCamera(void)" (?moveCamera@ExampleFrameListener@@QAEXXZ)
main.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: void __thiscall ExampleFrameListener::moveCamera(void)" (?moveCamera@ExampleFrameListener@@QAEXXZ)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const Ogre::WindowEventListener::`vftable'" (__imp_??_7WindowEventListener@Ogre@@6B@) referenced in function "public: virtual __thiscall ExampleFrameListener::~ExampleFrameListener(void)" (??1ExampleFrameListener@@UAE@XZ)
main.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)
main.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: void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@IAEXXZ)
main.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: void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@IAEXXZ)
main.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: void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@IAEXXZ)
main.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: void __thiscall ExampleFrameListener::updateStats(void)" (?updateStats@ExampleFrameListener@@IAEXXZ)
main.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)
main.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)
main.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:uaternion 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)
main.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)
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::Camera::setPolygonMode(enum Ogre:olygonMode)" (__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)
main.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)
main.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)
main.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)
E:\OGRE\first\first\Debug\first.exe : fatal error LNK1120: 53 unresolved externals
Build log was saved at "file://e:\OGRE\first\first\first\Debug\BuildLog.htm"
first - 54 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


现在是LINK错误,我不是太明白!!!!

我已经把ORGESDK 的INCLUDE 和LIB 加进去了
怎么还会有这样的错误呢????

5

主题

68

帖子

75

积分

注册会员

Rank: 2

积分
75
QQ
发表于 2007-7-16 13:03:00 | 显示全部楼层

Re:HELP ORGE 编译错误

using namespace ogre;试试.要不把代码贴出来

2

主题

108

帖子

116

积分

注册会员

Rank: 2

积分
116
发表于 2007-7-16 15:37:00 | 显示全部楼层

Re:HELP ORGE 编译错误

没设置包含OgreMain_d.lib,低级错误

7

主题

88

帖子

88

积分

注册会员

Rank: 2

积分
88
QQ
 楼主| 发表于 2007-7-16 21:30:00 | 显示全部楼层

Re: HELP ORGE 编译错误

"没设置包含OgreMain_d.lib,低级错误"   ??????


我用的是Visual c++ 2005
我在lib 目录中包含了
d:\OgreSDK\lib

在include 中包含了   D:\OgreSDK\include

并platform 也装上了

visual c++ sp1 我也装上了



请大虾告诉我 到底怎么设置????
[em17]

7

主题

88

帖子

88

积分

注册会员

Rank: 2

积分
88
QQ
 楼主| 发表于 2007-7-16 21:45:00 | 显示全部楼层

Re:HELP ORGE 编译错误

当我编译sample下的例子的时候也出现错误
------ Build started: Project: Demo_BezierPatch, Configuration: Debug Win32 ------
Linking...
Bezier.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function __catch$_WinMain@16$0
..\..\bin\Debug/Demo_BezierPatch.exe : fatal error LNK1120: 1 unresolved externals
Build log was saved at "file://d:\OgreSDK\samples\obj\Debug\BuildLog.htm"
Demo_BezierPatch - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

请高手指点一下

7

主题

88

帖子

88

积分

注册会员

Rank: 2

积分
88
QQ
 楼主| 发表于 2007-7-17 20:00:00 | 显示全部楼层

Re:HELP ORGE 编译错误

高手来帮帮忙啊????

到底是怎么了啊????

HELP ME

7

主题

88

帖子

88

积分

注册会员

Rank: 2

积分
88
QQ
 楼主| 发表于 2007-7-17 20:29:00 | 显示全部楼层

Re:HELP ORGE 编译错误

Bezier.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function __catch$_WinMain@16$0


我发现这个是MessageBox() 函数造成的错误,
我把这个函数注释掉,程序就能运行了,虽然有很多的警告!!!

这是什么原因造成的???
有人能告诉我吗????


谢谢了!!!!

0

主题

7

帖子

7

积分

新手上路

Rank: 1

积分
7
发表于 2007-7-18 09:07:00 | 显示全部楼层

Re:HELP ORGE 编译错误

ogre wiki上的buildFAQ: http://www.ogre3d.org/wiki/index.php/BuildFAQ
里面有类似的错误解释,看看吧

__imp__MessageBoxA@16
unresolved external symbol __imp__MessageBoxA@16 referenced in function _dError

Link user32.lib to your program.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-25 19:28

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表