用VC6打开半条命的engine来build,在LINK时出现错误。好像是动态链接库的路径问题。不知如何解决。

tomboy123123123 2003-11-17 03:48:27
因为要build后才能产生Source Browser,而Source Browser对察看和跟踪源码是很有用的。
build时产生错误信息如下:
Linking...
Creating library engine___Win32_Dedicated_Release/swds.lib and object engine___Win32_Dedicated_Release/swds.exp
……
bugreporter.obj : error LNK2001: unresolved external symbol "class IClientEntityList * entitylist" (?entitylist@@3PAVIClientEntityList@@A)
bugreporter.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall vgui2::Panel::OnTick(void)" (?OnTick@Panel@vgui2@@UAEXXZ)
bugreporter.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall vgui2::Frame::OnCommand(char const *)" (?OnCommand@Frame@vgui2@@UAEXPBD@Z)
bugreporter.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall vgui2::Frame::OnKeyCodeTyped(enum vgui2::KeyCode)" (?OnKeyCodeTyped@Frame@vgui2@@MAEXW4KeyCode@2@@Z)
Cvar.obj : error LNK2001: unresolved external symbol "public: void __thiscall KeyValues::SetString(char const *,char const *)" (?SetString@KeyValues@@QAEXPBD0@Z)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: void __thiscall KeyValues::SetString(char const *,char const *)" (?SetString@KeyValues@@QAEXPBD0@Z)
Sv_main.obj : error LNK2001: unresolved external symbol "public: void __thiscall KeyValues::SetString(char const *,char const *)" (?SetString@KeyValues@@QAEXPBD0@Z)
Cvar.obj : error LNK2001: unresolved external symbol "public: __thiscall KeyValues::KeyValues(char const *)" (??0KeyValues@@QAE@PBD@Z)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: __thiscall KeyValues::KeyValues(char const *)" (??0KeyValues@@QAE@PBD@Z)
Sv_main.obj : error LNK2001: unresolved external symbol "public: __thiscall KeyValues::KeyValues(char const *)" (??0KeyValues@@QAE@PBD@Z)
Cvar.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl KeyValues::operator new(unsigned int)" (??2KeyValues@@SAPAXI@Z)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl KeyValues::operator new(unsigned int)" (??2KeyValues@@SAPAXI@Z)
Host.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl KeyValues::operator new(unsigned int)" (??2KeyValues@@SAPAXI@Z)
Sv_main.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl KeyValues::operator new(unsigned int)" (??2KeyValues@@SAPAXI@Z)
disp_mapload.obj : error LNK2001: unresolved external symbol "void __cdecl SurfComputeLightmapCoordinate(struct SurfaceCtx_t const &,int,class Vector const &,class Vector2D &)" (?SurfComputeLightmapCoordinate@@YAXABUSurfaceCtx_t@@HABVVector@@AAVVect
or2D@@@Z)
disp_mapload.obj : error LNK2001: unresolved external symbol "void __cdecl SurfSetupSurfaceContext(struct SurfaceCtx_t &,int)" (?SurfSetupSurfaceContext@@YAXAAUSurfaceCtx_t@@H@Z)
EngineStats.obj : error LNK2001: unresolved external symbol "class IDemo * demo" (?demo@@3PAVIDemo@@A)
Host.obj : error LNK2001: unresolved external symbol "class IDemo * demo" (?demo@@3PAVIDemo@@A)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: void __thiscall KeyValues::SetInt(char const *,int)" (?SetInt@KeyValues@@QAEXPBDH@Z)
Sv_main.obj : error LNK2001: unresolved external symbol "public: void __thiscall KeyValues::SetInt(char const *,int)" (?SetInt@KeyValues@@QAEXPBDH@Z)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall KeyValues::GetName(void)" (?GetName@KeyValues@@QAEPBDXZ)
sv_log.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall KeyValues::GetName(void)" (?GetName@KeyValues@@QAEPBDXZ)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall KeyValues::GetString(char const *,char const *)" (?GetString@KeyValues@@QAEPBDPBD0@Z)
sv_log.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall KeyValues::GetString(char const *,char const *)" (?GetString@KeyValues@@QAEPBDPBD0@Z)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: class KeyValues * __thiscall KeyValues::MakeCopy(void)" (?MakeCopy@KeyValues@@QAEPAV1@XZ)
Host.obj : error LNK2001: unresolved external symbol "public: __thiscall KeyValues::KeyValues(char const *,char const *,char const *)" (??0KeyValues@@QAE@PBD00@Z)
Sv_main.obj : error LNK2001: unresolved external symbol "public: __thiscall KeyValues::KeyValues(char const *,char const *,char const *)" (??0KeyValues@@QAE@PBD00@Z)
Host.obj : error LNK2001: unresolved external symbol "public: float __thiscall CClientState::getframetime(void)const " (?getframetime@CClientState@@QBEMXZ)
engine_Dedicated_Release/swds.dll : fatal error LNK1120: 195 unresolved externals
Error executing link.exe.

swds.dll - 208 error(s), 0 warning(s)
...全文
49 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
tomboy123123123 2003-11-19
  • 打赏
  • 举报
回复
好了,可以了。谢谢各位的回复
tomboy123123123 2003-11-19
  • 打赏
  • 举报
回复
swds.lib是输出文件啊。不能设在里面。
如bugreporter.lib是需要的,我设了,但没用。一样的错。
icer202 2003-11-19
  • 打赏
  • 举报
回复
在project->settings->link(alt+F7)中的object/library modules中指定swds.lib 和swds.exp的路径
试一下看看。
tomboy123123123 2003-11-19
  • 打赏
  • 举报
回复
我用build.bat都可以编译,楼上的你开玩笑了,请编译过的和vc高手指点一下!!!
tomboy123123123 2003-11-18
  • 打赏
  • 举报
回复
踢!请VC高手指点!
何哀何欢 2003-11-18
  • 打赏
  • 举报
回复
这些大型游戏的源码多数都不全

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧