游戏开发论坛

 找回密码
 立即注册
搜索
查看: 4361|回复: 5

编译engine后 link的时候报错了,急啊!

[复制链接]

18

主题

135

帖子

143

积分

注册会员

Rank: 2

积分
143
发表于 2004-10-7 21:52:00 | 显示全部楼层 |阅读模式
--------------------Configuration: engine - Win32 Dedicated Release--------------------
Linking...
   Creating library engine___Win32_Dedicated_Release/swds.lib and object engine___Win32_Dedicated_Release/swds.exp
bugreporter.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall vgui2::Frame::GetClientArea(int &,int &,int &,int &)" (?GetClientArea@Frame@vgui2@@MAEXAAH000@Z)
bugreporter.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall vgui2::Frame::GetDefaultScreenPosition(int &,int &,int &,int &)" (?GetDefaultScreenPosition@Frame@vgui2@@MAE_NAAH000@Z)
bugreporter.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall vgui2::Frame::OnMinimizeToSysTray(void)" (?OnMinimizeToSysTray@Frame@vgui2@@MAEXXZ)
bugreporter.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall vgui2::Frame::OnMinimize(void)" (?OnMinimize@Frame@vgui2@@MAEXXZ)
bugreporter.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall vgui2::Frame::SetTitleBarVisible(bool)" (?SetTitleBarVisible@Frame@vgui2@@UAEX_N@Z)

GameEventManager.obj : error LNK2001: unresolved external symbol "public: int __thiscall KeyValues::GetInt(char const *,int)" (?GetInt@KeyValues@@QAEHPBDH@Z)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: class KeyValues * __thiscall KeyValues::GetFirstSubKey(void)" (?GetFirstSubKey@KeyValues@@QAEPAV1@XZ)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: void __thiscall KeyValues::SetFloat(char const *,float)" (?SetFloat@KeyValues@@QAEXPBDM@Z)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: enum KeyValues::types_t __thiscall KeyValues::GetDataType(char const *)" (?GetDataType@KeyValues@@QAE?AW4types_t@1@PBD@Z)
GameEventManager.obj : error LNK2001: unresolved external symbol "public: bool __thiscall KeyValues:oadFromFile(class IBaseFileSystem *,char const *,char const *)" (?LoadFromFile@KeyValues@@QAE_NPAVIBaseFileSystem@@PBD1@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)
EngineSoundClient.obj : error LNK2001: unresolved external symbol "class CSfxTable * __cdecl S_PrecacheSound(char const *)" (?S_PrecacheSound@@YAPAVCSfxTable@@PBD@Z)
EngineSoundClient.obj : error LNK2001: unresolved external symbol "void __cdecl S_StartDynamicSound(int,int,class CSfxTable *,class Vector const &,class Vector const &,bool,float,enum soundlevel_t,int,int,bool,float)" (?S_StartDynamicSound@@YAXHHPAV
CSfxTable@@ABVVector@@1_NMW4soundlevel_t@@HH2M@Z)
EngineSoundClient.obj : error LNK2001: unresolved external symbol "void __cdecl S_StartStaticSound(int,int,class CSfxTable *,class Vector const &,class Vector const &,bool,float,enum soundlevel_t,int,int,bool,float)" (?S_StartStaticSound@@YAXHHPAVCS
fxTable@@ABVVector@@1_NMW4soundlevel_t@@HH2M@Z)
EngineSoundClient.obj : error LNK2001: unresolved external symbol "class ConVar dsp_room" (?dsp_room@@3VConVar@@A)
EngSoundService.obj : error LNK2001: unresolved external symbol "class IBaseClientDLL * g_ClientDLL" (?g_ClientDLL@@3PAVIBaseClientDLL@@A)
EngSoundService.obj : error LNK2001: unresolved external symbol "void __cdecl ClientDLL_VoiceStatus(int,bool)" (?ClientDLL_VoiceStatus@@YAXH_N@Z)
engine_Dedicated_Release/swds.dll : fatal error LNK1120: 201 unresolved externals
Error executing link.exe.

swds.dll - 217 error(s), 0 warning(s)

18

主题

135

帖子

143

积分

注册会员

Rank: 2

积分
143
 楼主| 发表于 2004-10-7 21:53:00 | 显示全部楼层

Re:编译engine后 link的时候报错了,急啊!

我是单独编译的engine

15

主题

155

帖子

157

积分

注册会员

Rank: 2

积分
157
发表于 2004-10-11 00:00:00 | 显示全部楼层

Re:编译engine后 link的时候报错了,急啊!

你把其他的项目也编译一次就好啦

0

主题

3

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2005-4-5 16:30:00 | 显示全部楼层

Re:编译engine后 link的时候报错了,急啊!

我现在也是这个问题,
不知哪个高手在指点迷津,
以帮我等晚辈解燃眉之急。
谢谢。

4

主题

61

帖子

61

积分

注册会员

Rank: 2

积分
61
发表于 2005-4-5 17:03:00 | 显示全部楼层

Re:编译engine后 link的时候报错了,急啊!

这种错误一般是没找到*.lib,把该打的补订都打了,整体编译,是可以编译通过的,我成功过。

0

主题

3

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2005-4-5 23:03:00 | 显示全部楼层

Re:编译engine后 link的时候报错了,急啊!

我按你所说的把补丁都打上了,
但是编译以后在cmd下输入hl2.exe后提示内存不能读,
退出后(cmd)双击hl2.exe,就只黑屏一下然后就弹出来了,
并不运行hl2.exe,不知为什么,请在指导一下。
谢谢。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-5-20 01:19

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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