Raised This Month: $51 Target: $400
 12% 

Got some errors on tryng to compile a code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zekStein
Member
Join Date: Feb 2011
Location: Romania :(
Old 01-05-2012 , 12:40   Got some errors on tryng to compile a code
Reply With Quote #1

I just took a code from hlsdk and tried to make an native for that function.
And ive got these errors :


PHP Code:

Error    8    error LNK1120
5 unresolved externals    D:\revox\debug\dod_mm_amxx.dll    1    1    revox
Error    6    error LNK2019
unresolved external symbol "class CBaseEntity * __cdecl UTIL_FindEntityInSphere(class CBaseEntity *,class Vector const &,float)" (?UTIL_FindEntityInSphere@@YAPAVCBaseEntity@@PAV1@ABVVector@@M@Zreferenced in function "void __cdecl RadiusDamage(class Vector,struct entvars_s *,struct entvars_s *,float,float,int)" (?RadiusDamage@@YAXVVector@@PAUentvars_s@@1MMH@Z)    D:\revox\main.obj    revox
Error    7    error LNK2019
unresolved external symbol "int __cdecl UTIL_PointContents(class Vector const &)" (?UTIL_PointContents@@YAHABVVector@@@Zreferenced in function "void __cdecl RadiusDamage(class Vector,struct entvars_s *,struct entvars_s *,float,float,int)" (?RadiusDamage@@YAXVVector@@PAUentvars_s@@1MMH@Z)    D:\revox\main.obj    revox
Error    3    error LNK2019
unresolved external symbol "void __cdecl ApplyMultiDamage(struct entvars_s *,struct entvars_s *)" (?ApplyMultiDamage@@YAXPAUentvars_s@@0@Zreferenced in function "void __cdecl RadiusDamage(class Vector,struct entvars_s *,struct entvars_s *,float,float,int)" (?RadiusDamage@@YAXVVector@@PAUentvars_s@@1MMH@Z)    D:\revox\main.obj    revox
Error    4    error LNK2019
unresolved external symbol "void __cdecl ClearMultiDamage(void)" (?ClearMultiDamage@@YAXXZreferenced in function "void __cdecl RadiusDamage(class Vector,struct entvars_s *,struct entvars_s *,float,float,int)" (?RadiusDamage@@YAXVVector@@PAUentvars_s@@1MMH@Z)    D:\revox\main.obj    revox
Error    5    error LNK2019
unresolved external symbol "void __cdecl UTIL_TraceLine(class Vector const &,class Vector const &,enum IGNORE_MONSTERS,struct edict_s *,struct TraceResult *)" (?UTIL_TraceLine@@YAXABVVector@@0W4IGNORE_MONSTERS@@PAUedict_s@@PAUTraceResult@@@Zreferenced in function "void __cdecl RadiusDamage(class Vector,struct entvars_s *,struct entvars_s *,float,float,int)" (?RadiusDamage@@YAXVVector@@PAUentvars_s@@1MMH@Z)    D:\revox\main.obj    revox 
Any ideea to resolve this ?

Last edited by zekStein; 01-05-2012 at 12:40.
zekStein is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-06-2012 , 05:50   Re: Got some errors on tryng to compile a code
Reply With Quote #2

It appears like you included util.h from hlsdk, but didn't supply the corresponding instance.
You should copy those functions to your own project.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
zekStein
Member
Join Date: Feb 2011
Location: Romania :(
Old 01-06-2012 , 11:29   Re: Got some errors on tryng to compile a code
Reply With Quote #3

Thanks man, but now i have another problem ! I'll make another topic.
zekStein is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode