游戏开发论坛

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

用VC6打开engine来build,在LINK时出现错误。好像是动态链接

[复制链接]

2

主题

2

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2003-11-17 14:47:00 | 显示全部楼层 |阅读模式
因为要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:anel::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:perator 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)

3

主题

15

帖子

21

积分

注册会员

Rank: 2

积分
21
发表于 2003-12-28 16:37:00 | 显示全部楼层

Re: 用VC6打开engine来build,在LINK时出现错误。好像是动态链

我也是

22

主题

156

帖子

156

积分

注册会员

Rank: 2

积分
156
QQ
发表于 2003-12-28 20:22:00 | 显示全部楼层

Re:用VC6打开engine来build,在LINK时出现错误。好像是动态链

我想你应该把engine文件包的路径没有设置吧??

3

主题

15

帖子

21

积分

注册会员

Rank: 2

积分
21
发表于 2003-12-30 09:29:00 | 显示全部楼层

Re:用VC6打开engine来build,在LINK时出现错误。好像是动态链

设成debug编译ok
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-5-20 03:44

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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