Forum

Linker errors :/ (quake 3)

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Linker errors :/ (quake 3)

Postby Logan » Sat Dec 11, 2010 3:58 am

Hi there, I'm a long time lurker, first time poster. And I was wondering if you guys could perhaps provide some insight into a linker error I have when trying to compile the Quake 3 code (which I have updated to use C++ instead of C)

I have all of the other components of the code compiling perfectly (such as cgame, game, UI code etc) but when it attempts to link the final quake3 executable I get 2 LNK 2001 errors involving the checksum code:
Code: Select all
cm_load.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl Com_BlockChecksum(void const *,int)" (?Com_BlockChecksum@@YAIPBXH@Z) referenced in function "unsigned int __cdecl CM_LumpChecksum(struct lump_t *)" (?CM_LumpChecksum@@YAIPAUlump_t@@@Z)
files.obj : error LNK2001: unresolved external symbol "unsigned int __cdecl Com_BlockChecksum(void const *,int)" (?Com_BlockChecksum@@YAIPBXH@Z)


I've really got absolutely no idea what I'm doing wrong here, or what library I should be linking against to fix this (I've even looked at this port to no avail)

Could you guys provide any insight/solutions to the issue? I've spent a few weeks on this and I just can't figure it out.

Thanks in advance!
Logan
 
Posts: 8
Joined: Wed Feb 24, 2010 8:22 am
Location: Auckland, New Zealand

Postby Logan » Sat Dec 11, 2010 6:19 am

Nevermind, found out the problem :)
Logan
 
Posts: 8
Joined: Wed Feb 24, 2010 8:22 am
Location: Auckland, New Zealand

Postby frag.machine » Sun Dec 12, 2010 1:32 am

Hi Logan, and welcome. Just to keep a reference for someone else with similar problems in the future, how did you fix it ?
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby Logan » Sun Dec 12, 2010 10:16 am

Heh, it was a rather silly mistake on my part in the first place :P

When I had started work on the port I had renamed all the extensions on the code files to cpp. Turns out I accidentally renamed md4.c when I shouldn't have, not sure what it was that made me think that was the problem but it ended up solving it in the end :)
Logan
 
Posts: 8
Joined: Wed Feb 24, 2010 8:22 am
Location: Auckland, New Zealand


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest