HIT Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Spirit of Half-Life 1.7 client code first-time compile errors  (Read 1714 times)

0 Members and 1 Guest are viewing this topic.

Coozins

  • T-Virus carrier
  • Gonarch
  • ********
  • Offline Offline
  • Posts: 1885
  • What is this? What's going on here?
    • View Profile
Spirit of Half-Life 1.7 client code first-time compile errors
« on: August 16, 2008, 06:58:52 PM »

When I tried to compile Spirit 1.7's client code for the first time (without any changes), I got these 5 errors:
ev_hldm.obj : error LNK2001: unresolved external symbol "float g_flApplyVel" (?g_flApplyVel@@3MA)
entity.obj : error LNK2001: unresolved external symbol "void __cdecl Game_AddObjects(void)" (?Game_AddObjects@@YAXXZ)
events.obj : error LNK2001: unresolved external symbol "void __cdecl Game_HookEvents(void)" (?Game_HookEvents@@YAXXZ)
tri.obj : error LNK2001: unresolved external symbol "int g_iWaterLevel" (?g_iWaterLevel@@3HA)
C:\Program Files\Steam\steamapps\coozins\half-life\guard_duty\cl_dlls\client.dll : fatal error LNK1120: 4 unresolved externals

Does anyone have any idea of how I can fix these errors?
Logged

technoblue

  • Alien Grunt
  • ******
  • Offline Offline
  • Posts: 401
    • View Profile
Re: Spirit of Half-Life 1.7 client code first-time compile errors
« Reply #1 on: August 17, 2008, 06:02:59 AM »

http://en.wikipedia.org/wiki/External_variable

That will explain what an external variable in c++ is.

You are either missing the extern declaration and function prototypes, or you are not including required header files.
Logged

Coozins

  • T-Virus carrier
  • Gonarch
  • ********
  • Offline Offline
  • Posts: 1885
  • What is this? What's going on here?
    • View Profile
Re: Spirit of Half-Life 1.7 client code first-time compile errors
« Reply #2 on: August 17, 2008, 06:53:26 PM »

Thanks, I've fixed it now. I deleted the Spirit 1.7 code, put the Spirit 1.2 code in the code folder instead and pasted the 1.7 code over the top.
Logged