Jump to content

Half - Life SDK Compiling error with cl_dll.


Recommended Posts

I am attempting to add a Tec-9 weapon to my mod, but I keep getting this error when I compile the file in Visual C++ 2008.

I am using this SDK:

https://www.moddb.com/downloads/half-life-sdk-v23-for-visual-studio-2008

 

 

 

------ Build started: Project: cl_dll, Configuration: Debug Win32 ------
Linking...
   Creating library .\Debug/client.lib and object .\Debug/client.exp
hl_events.obj : error LNK2019: unresolved external symbol _EV_FireTec2 referenced in function "void __cdecl Game_HookEvents(void)" (?Game_HookEvents@@YAXXZ)
hl_events.obj : error LNK2019: unresolved external symbol _EV_FireTec1 referenced in function "void __cdecl Game_HookEvents(void)" (?Game_HookEvents@@YAXXZ)
.\Debug\client.dll : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://f:\Documents and Settings\Jakub\Desktop\zombietakeover\sourcecode\cl_dll\Debug\BuildLog.htm"
cl_dll - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Share this post


Link to post

I found the error.

I didn't define the event properly in ev_hldm.cpp.

It's all fine now.

Share this post


Link to post
21 hours ago, Obsidian Plague said:

i think the real error is you're not using samvanheer's sdk

I can't use VS 2019, or 2022 or anything of the sort, since I am using Windows XP.

Share this post


Link to post
1 hour ago, DogsRNice said:

Why though?

 

His laptop is older than some of the people on this forum unfortunately.

Share this post


Link to post
2 hours ago, Murdoch said:

 

His laptop is older than some of the people on this forum unfortunately.

I found out I can run Windows 7, but, it doesn't run nearly as well as XP, and since i need as much performance as possible with a 16+ year old laptop, Windows XP is the right choice.

Share this post


Link to post
2 hours ago, Zopawa said:

I found out I can run Windows 7, but, it doesn't run nearly as well as XP, and since i need as much performance as possible with a 16+ year old laptop, Windows XP is the right choice.

 

No it would not. Plus your hard drive is probably worn out which won't help performance any.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...