Code error.

  • Thread starter Thread starter Kreig12
  • Start date Start date
K

Kreig12

Guest
Ok, I have come quite far in my mod process, but I have stumbled on a error which I cant quite seem to fix, so please try and help me!

The error is:

hl error LNK2001: unresolved external symbol "class SendTable DT_HalfLife2Proxy::g_SendTable" (?g_SendTable@DT_HalfLife2Proxy@@3VSendTable@@A)

If anyone does know how to fix it please post.
Thanks in advance!
 
Sounds like dodgy networking to me. Look at the SendTables and RecieveTables of your amended code.

-Angry Lawyer
 
this happend to me when i had stuff declared in my header files but didnt use it at all in the actual code files.
 
Ok, the error on the output is:

hl2_gamerules.obj : error LNK2001: unresolved external symbol "class SendTable DT_HalfLife2Proxy::g_SendTable" (?g_SendTable@DT_HalfLife2Proxy@@3VSendTable@@A)

Does that mean its in the hl2_gamerules?
 
Strong possibility. Try reverting hl2_gamerules to its original version to see if it compiles.

-Angry Lawyer
 
I have had my friend send me his version of the gamerules.
I still have that error, but the file was from AFTER the sdk update, which added ep1 code.
 
Hrmnmnmmn

Do a search for "DT_HalfLife2Proxy" or "g_SendTable". See if they exist both in the body of the declaration and the implementation, because linker errors typically take place if you've missed one of them out.

-Angry Lawyer
 
Ah, not to worry!!
My friend resent the older versions and it now works!
Thanks for all your help. :D
 
Back
Top