Linker errors :/ (quake 3)
Moderator: InsideQC Admins
4 posts
• Page 1 of 1
Linker errors :/ (quake 3)
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:
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!
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
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)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
Heh, it was a rather silly mistake on my part in the first place
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
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
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest