Game Development Community

Map2Dif Linking Errors

by John Doppler Schiff · in Torque Game Engine · 01/03/2007 (7:38 am) · 1 replies

Hi folks,
I've run into a snag when trying to compile Map2Dif and Map2Dif_plus.

First, the basics: I'm working on TGE 1.5 in Windows XP, VC++ 6.0, with the latest service packs.

When I try to build Map2Dif, I get the following errors:
--------------------Configuration: map2dif - Win32 Release--------------------
Linking...
engine.lib(interior.obj) : error LNK2001: unresolved external symbol "public: void __thiscall sgDetailMapping::sgClearDetailMapping(void)" (?sgClearDetailMapping@sgDetailMapping@@QAEXXZ)
engine.lib(interior.obj) : error LNK2001: unresolved external symbol "public: void __thiscall sgDetailMapping::sgInitDetailMapping(class MaterialList *)" (?sgInitDetailMapping@sgDetailMapping@@QAEXPAVMaterialList@@@Z)
engine.lib(interiorLMManager.obj) : error LNK2001: unresolved external symbol "public: static bool __cdecl SceneLighting::lightScene(char const *,class BitSet32)" (?lightScene@SceneLighting@@SA_NPBDVBitSet32@@@Z)
engine.lib(sceneGraph.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl LightManager::sgInit(void)" (?sgInit@LightManager@@SAXXZ)
engine.lib(sceneGraph.obj) : error LNK2001: unresolved external symbol "public: void __thiscall LightManager::sgRegisterGlobalLights(bool)" (?sgRegisterGlobalLights@LightManager@@QAEX_N@Z)
engine.lib(sceneObject.obj) : error LNK2001: unresolved external symbol "public: __thiscall LightInfo::LightInfo(void)" (??0LightInfo@@QAE@XZ)

Etc., etc, fatal error LNK1120: 24 unresolved externals, all involving LightManager and sgYaddayadda...

Engine.lib has built just fine, and it's included under the Object/library modules in the Link tab. Torque Demo compiled with no problems.

Can anyone shed some light on what's gone haywire?

Thanks in advance!

#1
01/05/2007 (2:47 pm)
OK, problem resolved.

The LightingSystem directory was missing from my workspace, for some reason. Once I added that back into TorqueLib and rebuilt it, everything worked fine.

Hope that helps some other clueless newb like myself! =D