游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3102|回复: 2

OgreOpCode错误

[复制链接]

17

主题

37

帖子

47

积分

注册会员

Rank: 2

积分
47
发表于 2008-10-16 08:41:00 | 显示全部楼层 |阅读模式
我下载了一个ogreopcode,然后进行编译,出来一些莫名其妙的错误,这是什么原因造成的?下面是错误:

正在生成代码...
1>正在链接...
1>   正在创建库 ..\bin\Release/OgreOpcode.lib 和对象 ..\bin\Release/OgreOpcode.exp
1>OgreCollisionManager.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall OgreOpcode::CapsuleMeshCollisionShape::~CapsuleMeshCollisionShape(void)" (??1CapsuleMeshCollisionShape@OgreOpcode@@UAE@XZ),该符号在函数 "public: virtual void * __thiscall OgreOpcode::CapsuleMeshCollisionShape::`scalar deleting destructor'(unsigned int)" (??_GCapsuleMeshCollisionShape@OgreOpcode@@UAEPAXI@Z) 中被引用
1>OgreOpcodeCharacterController.obj : error LNK2001: 无法解析的外部符号 "public: virtual __thiscall OgreOpcode::CapsuleMeshCollisionShape::~CapsuleMeshCollisionShape(void)" (??1CapsuleMeshCollisionShape@OgreOpcode@@UAE@XZ)
1>OgreCollisionManager.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::refit(void)" (?refit@CapsuleMeshCollisionShape@OgreOpcode@@UAE_NXZ)
1>OgreOpcodeCharacterController.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::refit(void)" (?refit@CapsuleMeshCollisionShape@OgreOpcode@@UAE_NXZ)
1>OgreCollisionManager.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class Ogre::SceneNode *,float,float,int,int)" (?load@CapsuleMeshCollisionShape@OgreOpcode@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVSceneNode@Ogre@@MMHH@Z)
1>OgreOpcodeCharacterController.obj : error LNK2001: 无法解析的外部符号 "public: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class Ogre::SceneNode *,float,float,int,int)" (?load@CapsuleMeshCollisionShape@OgreOpcode@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVSceneNode@Ogre@@MMHH@Z)
1>OgreCollisionManager.obj : error LNK2001: 无法解析的外部符号 "protected: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::rebuild(void)" (?rebuild@CapsuleMeshCollisionShape@OgreOpcode@@MAE_NXZ)
1>OgreOpcodeCharacterController.obj : error LNK2019: 无法解析的外部符号 "protected: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::rebuild(void)" (?rebuild@CapsuleMeshCollisionShape@OgreOpcode@@MAE_NXZ),该符号在函数 "public: __thiscall OgreOpcode::MeshCollisionShape::MeshCollisionShape(class OgreOpcode::MeshCollisionShape const &)" (??0MeshCollisionShape@OgreOpcode@@QAE@ABV01@@Z) 中被引用
1>OgreCollisionManager.obj : error LNK2001: 无法解析的外部符号 "protected: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::_refitToCachedData(void)" (?_refitToCachedData@CapsuleMeshCollisionShape@OgreOpcode@@MAE_NXZ)
1>OgreOpcodeCharacterController.obj : error LNK2001: 无法解析的外部符号 "protected: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::_refitToCachedData(void)" (?_refitToCachedData@CapsuleMeshCollisionShape@OgreOpcode@@MAE_NXZ)
1>OgreCollisionManager.obj : error LNK2001: 无法解析的外部符号 "protected: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::_rebuildFromCachedData(void)" (?_rebuildFromCachedData@CapsuleMeshCollisionShape@OgreOpcode@@MAE_NXZ)
1>OgreOpcodeCharacterController.obj : error LNK2001: 无法解析的外部符号 "protected: virtual bool __thiscall OgreOpcode::CapsuleMeshCollisionShape::_rebuildFromCachedData(void)" (?_rebuildFromCachedData@CapsuleMeshCollisionShape@OgreOpcode@@MAE_NXZ)
1>OgreCollisionManager.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall OgreOpcode::CapsuleMeshCollisionShape::CapsuleMeshCollisionShape(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0CapsuleMeshCollisionShape@OgreOpcode@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 "protected: class OgreOpcode::ICollisionShape * __thiscall OgreOpcode::CollisionManager::createShape(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum OgreOpcode::ShapeType)" (?createShape@CollisionManager@OgreOpcode@@IAEPAVICollisionShape@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4ShapeType@2@@Z) 中被引用
1>..\bin\Release/OgreOpcode.dll : fatal error LNK1120: 7 个无法解析的外部命令

0

主题

1

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2009-9-16 18:41:00 | 显示全部楼层

Re:OgreOpCode错误

不幸啊...我也遇到这问题了.不知怎么解决

2

主题

16

帖子

28

积分

注册会员

Rank: 2

积分
28
QQ
发表于 2009-9-18 00:40:00 | 显示全部楼层

Re:OgreOpCode错误

这种大段大段的无法解析外部符号,一看就是链接时候lib问题,这些函数既然无法解析,说明含有这些函数的lib库没有被添加进项目

链接器 - 输入 - 附加依赖项 加上该加的东西

.......太多的人编译都不会就来研究OGRE...就好像一个C++程序员内存管理都不会就出来混一样,悲剧



您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-6-20 19:02

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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