游戏开发论坛

 找回密码
 立即注册
搜索
查看: 7090|回复: 3

我建了一个orge程序,结果一大堆外部符号,哪位大哥能帮帮

[复制链接]

12

主题

30

帖子

30

积分

注册会员

Rank: 2

积分
30
发表于 2007-2-11 21:05:00 | 显示全部楼层 |阅读模式
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager:p_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z) ,该符号在函数 "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ) ,该符号在函数 "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class Ogre::MemoryManager & __cdecl Ogre::MemoryManager::instance(void)" (__imp_?instance@MemoryManager@Ogre@@SAAAV12@XZ) ,该符号在函数 "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z) ,该符号在函数 "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Ogre::Exception::getFullDescription(void)const " (__imp_?getFullDescription@Exception@Ogre@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) ,该符号在函数 __catch$_WinMain@16$0 中被引用
ogremain.obj : 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) 中被引用
ogremain.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) 中被引用
ogremain.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) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::MemoryManager::setOwner(char const *,unsigned int,char const *)" (__imp_?setOwner@MemoryManager@Ogre@@QAEXPBDI0@Z) ,该符号在函数 "protected: virtual bool __thiscall ExampleApplication::setup(void)" (?setup@ExampleApplication@@MAE_NXZ) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__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) ,该符号在函数 "protected: virtual bool __thiscall ExampleApplication::configure(void)" (?configure@ExampleApplication@@MAE_NXZ) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool __thiscall Ogre::Root::showConfigDialog(void)" (__imp_?showConfigDialog@Root@Ogre@@QAE_NXZ) ,该符号在函数 "protected: virtual bool __thiscall ExampleApplication::configure(void)" (?configure@ExampleApplication@@MAE_NXZ) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__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) ,该符号在函数 "protected: virtual void __thiscall ExampleApplication::chooseSceneManager(void)" (?chooseSceneManager@ExampleApplication@@MAEXXZ) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Camera::lookAt(class Ogre::Vector3 const &)" (__imp_?lookAt@Camera@Ogre@@QAEXABVVector3@2@@Z) ,该符号在函数 "protected: virtual void __thiscall ExampleApplication::createCamera(void)" (?createCamera@ExampleApplication@@MAEXXZ) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Camera::setPosition(class Ogre::Vector3 const &)" (__imp_?setPosition@Camera@Ogre@@QAEXABVVector3@2@@Z) ,该符号在函数 "protected: virtual void __thiscall ExampleApplication::createCamera(void)" (?createCamera@ExampleApplication@@MAEXXZ) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall Ogre::Vector3::Vector3(float,float,float)" (__imp_??0Vector3@Ogre@@QAE@MMM@Z) ,该符号在函数 "protected: virtual void __thiscall ExampleApplication::createCamera(void)" (?createCamera@ExampleApplication@@MAEXXZ) 中被引用
ogremain.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall Ogre::Root::addFrameListener(class Ogre::FrameListener *)" (__imp_?addFrameListener@Root@Ogre@@QAEXPAVFrameListener@2@@Z) ,该符号在函数 "protected: virtual void __thiscall ExampleApplication::createFrameListener(void)" (?createFrameListener@ExampleApplication@@MAEXXZ) 中被引用
ogremain.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall Ogre::EventProcessor::isKeyEnabled(void)const " (?isKeyEnabled@EventProcessor@Ogre@@UBE_NXZ)
ogremain.obj : error LNK2001: 无法解析的外部符号 "public: virtual class Ogre:ositionTarget * __thiscall Ogre::EventProcessor::getPositionTargetParent(void)const " (?getPositionTargetParent@EventProcessor@Ogre@@UBEPAVPositionTarget@2@XZ)
ogremain.obj : error LNK2001: 无法解析的外部符号 "public: virtual float __thiscall Ogre::EventProcessor::getTop(void)const " (?getTop@EventProcessor@Ogre@@UBEMXZ)
ogremain.obj : error LNK2001: 无法解析的外部符号 "public: virtual float __thiscall Ogre::EventProcessor::getLeft(void)const " (?getLeft@EventProcessor@Ogre@@UBEMXZ)
ogremain.obj : error LNK2001: 无法解析的外部符号 "public: virtual void __thiscall Ogre::EventProcessor::processEvent(class Ogre::InputEvent *)" (?processEvent@EventProcessor@Ogre@@UAEXPAVInputEvent@2@@Z)
ogremain.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall Ogre::FrameListener::frameEnded(struct Ogre::FrameEvent const &)" (?frameEnded@FrameListener@Ogre@@UAE_NABUFrameEvent@2@@Z)
ogremain.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall

13

主题

90

帖子

96

积分

注册会员

Rank: 2

积分
96
发表于 2007-2-11 22:23:00 | 显示全部楼层

Re: 我建了一个orge程序,结果一大堆外部符号,哪位大哥能帮

你是否在工程中添加好了相应的链接库的设置?

12

主题

30

帖子

30

积分

注册会员

Rank: 2

积分
30
 楼主| 发表于 2007-2-12 23:33:00 | 显示全部楼层

Re:我建了一个orge程序,结果一大堆外部符号,哪位大哥能帮

恩ogresdk下的都加了

2

主题

16

帖子

16

积分

新手上路

Rank: 1

积分
16
发表于 2007-2-13 10:22:00 | 显示全部楼层

Re:我建了一个orge程序,结果一大堆外部符号,哪位大哥能帮

看看OgreMain编译选项有没有 /D "OGRE_NONCLIENT_BUILD" 。另外将你自己的程序中此选项去掉。
试验下,看看。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-26 10:39

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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