Game Development Community

Link error caused by change in latest HEAD version

by David Dougher · in Torque Game Engine · 03/20/2002 (11:18 am) · 6 replies

There was a recent change made in the Head version that apparently was not propagated to all the tools. I downloaded a brand new version of the Head and recompiled it and got the following error at Link time...

This one came from BuildWad.exe - Debug version.

Compiling...
main.cc
palQuantization.cc
wadProcessor.cc
Linking...
engine_DEBUG.lib(winCPUInfo.obj) : error LNK2001: unresolved external symbol "void __cdecl SetProcessorInfo(struct Platform::SystemInfo_struct::Processor &,char *,unsigned int,unsigned int)" (?SetProcessorInfo@@YAXAAUProcessor@SystemInfo_struct@Plat
form@@PADII@Z)
engine_DEBUG.lib(winCPUInfo.obj) : error LNK2001: unresolved external symbol _detectX86CPUInfo
../tools/buildWad_DEBUG.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.


There were several of these covering different tools. I believe someone is making changes to the processor type recognition code for the engine. Could you extend that change to cover the tools as well?

About the author

Owner - Pariah Games, Adjunct Professor - Bristol Community College, Mentor - Game Design - Met School Newport, Mentor - Game Design - Met School Providence


#1
03/20/2002 (3:57 pm)
I checked in a fixed "Torque Lib.dsp" file. Please let me know if that fixes the problem.
#2
03/20/2002 (6:29 pm)
John,

That took care of the problem. Thank you!

Rich
#3
03/22/2002 (4:47 am)
Well, not quite...

While most of the pieces now seem to compile correctly in the tools the Release versions - only - of BuildWad, Map2Dif, texture2bm8, max2mapexporter_max3, and max2mapexporter_max4 all failed. the demo, lib, and debug version of all the tools worked fine.
#4
03/22/2002 (9:29 am)
I fixed the configuration name for platformCPUInfo.asm in "Torque Lib.dsp" and checked it in. This should fix the problem, please let me know if it doesn't.

Edit: I made an additional fix to both Torque Demo.dsp and Torque Lib.dsp, and checked that in as well.
#5
03/22/2002 (10:29 am)
@David,

Sorry about the misleading information. I always compile in debug mode. I just compiled all of the modules, excluding max2dtsExporter Max3, for both Release and Debug. Everything compiled.

@John,

Thanks again for the quick solution!

Rich
#6
03/22/2002 (3:16 pm)
Well, I figure if I break it quick I need to fix it quick. :)