Linker error how to solve?
by Firas · in · 11/14/2004 (5:08 am) · 3 replies
I have TGE 1.2.2 and I run the patch file and everything was fine I try the demo and the light is ablied on the game, but when I try to Build the map2dif I have the following link errors:
Linking...
engine.lib(terrData.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(gameBase.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(sceneRoot.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(trigger.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(simPath.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(pathedInterior.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(mirrorSubObject.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(sceneObject.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(interiorSubObject.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(interiorInstance.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(lightManager.obj) : error LNK2019: unresolved external symbol "private: void __thiscall LightManager::scoreLight(class LightInfo *,class SphereF const &)const " (?scoreLight@LightManager@@ABEXPAVLightInfo@@ABVSphereF@@@Z) referenced in function "public: unsigned int __thiscall LightManager::installGLLights(class SphereF const &)" (?installGLLights@LightManager@@QAEIABVSphereF@@@Z)
engine.lib(sceneLighting.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall ConcretePolyList::~ConcretePolyList(void)" (??1ConcretePolyList@@UAE@XZ) referenced in function "public: void __thiscall SceneLighting::sgAddStatic(class ShadowVolumeBSP *,class SceneObject &,class LightInfo *,int,class SceneLighting::TerrainProxy *)" (?sgAddStatic@SceneLighting@@QAEXPAVShadowVolumeBSP@@AAVSceneObject@@PAVLightInfo@@HPAVTerrainProxy@1@@Z)
engine.lib(sceneLighting.obj) : error LNK2019: unresolved external symbol "public: __thiscall ConcretePolyList::ConcretePolyList(void)" (??0ConcretePolyList@@QAE@XZ) referenced in function "public: void __thiscall SceneLighting::sgAddStatic(class ShadowVolumeBSP *,class SceneObject &,class LightInfo *,int,class SceneLighting::TerrainProxy *)" (?sgAddStatic@SceneLighting@@QAEXPAVShadowVolumeBSP@@AAVSceneObject@@PAVLightInfo@@HPAVTerrainProxy@1@@Z)
Linking...
engine.lib(terrData.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(gameBase.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(sceneRoot.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(trigger.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(simPath.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(pathedInterior.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(mirrorSubObject.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(sceneObject.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(interiorSubObject.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(interiorInstance.obj) : error LNK2001: unresolved external symbol "protected: virtual void __thiscall SceneObject::installLights(void)" (?installLights@SceneObject@@MAEXXZ)
engine.lib(lightManager.obj) : error LNK2019: unresolved external symbol "private: void __thiscall LightManager::scoreLight(class LightInfo *,class SphereF const &)const " (?scoreLight@LightManager@@ABEXPAVLightInfo@@ABVSphereF@@@Z) referenced in function "public: unsigned int __thiscall LightManager::installGLLights(class SphereF const &)" (?installGLLights@LightManager@@QAEIABVSphereF@@@Z)
engine.lib(sceneLighting.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall ConcretePolyList::~ConcretePolyList(void)" (??1ConcretePolyList@@UAE@XZ) referenced in function "public: void __thiscall SceneLighting::sgAddStatic(class ShadowVolumeBSP *,class SceneObject &,class LightInfo *,int,class SceneLighting::TerrainProxy *)" (?sgAddStatic@SceneLighting@@QAEXPAVShadowVolumeBSP@@AAVSceneObject@@PAVLightInfo@@HPAVTerrainProxy@1@@Z)
engine.lib(sceneLighting.obj) : error LNK2019: unresolved external symbol "public: __thiscall ConcretePolyList::ConcretePolyList(void)" (??0ConcretePolyList@@QAE@XZ) referenced in function "public: void __thiscall SceneLighting::sgAddStatic(class ShadowVolumeBSP *,class SceneObject &,class LightInfo *,int,class SceneLighting::TerrainProxy *)" (?sgAddStatic@SceneLighting@@QAEXPAVShadowVolumeBSP@@AAVSceneObject@@PAVLightInfo@@HPAVTerrainProxy@1@@Z)
About the author
#2
I did it, it's fine.
but I have a small question: the new build of the map2dif, does it add somthing to dif files like applying bump mapping or somthing like that, I hope I make myself clear, I will ask my question agine: I change the engine to apply the new lightning system, but why we change the map2dif, does it apply any new features.
I know my english is bad and sorry for that.
thanks on advance.
11/14/2004 (8:45 am)
Thanks JohnI did it, it's fine.
but I have a small question: the new build of the map2dif, does it add somthing to dif files like applying bump mapping or somthing like that, I hope I make myself clear, I will ask my question agine: I change the engine to apply the new lightning system, but why we change the map2dif, does it apply any new features.
I know my english is bad and sorry for that.
thanks on advance.
#3
Good question the Map2Dif and TGE Demo projects both share some of the same core TGE source files, like sceneLighting.cc which is heavily tied into the Lighting Pack, so some of the Lighting Pack files end up being pulled into the Map2Dif project because of this relationship.
-John
11/14/2004 (8:49 am)
Hi Firas,Good question the Map2Dif and TGE Demo projects both share some of the same core TGE source files, like sceneLighting.cc which is heavily tied into the Lighting Pack, so some of the Lighting Pack files end up being pulled into the Map2Dif project because of this relationship.
-John
Torque Owner John Kabus (BobTheCBuilder)
Check out the Integration Guide, there are some files that need added to the Map2dif project.
-John