Game Development Community

un resolved external symbols

by Joseph Bosch · in Game Mechanics Kit · 10/22/2012 (4:09 pm) · 1 replies

I tried to get GMK into a Torque 3d project and get this when I try to compile

1>physicsPlugin.obj : error LNK2019: unresolved external symbol "public: static void __cdecl Physics::init(char const *)" (?init@Physics@@SAXPBD@Z) referenced in function "bool __cdecl cf_physicsInit(class SimObject *,int,char const * *)" (?cf_physicsInit@@YA_NPAVSimObject@@HPAPBD@Z)
1>physicsPlugin.obj : error LNK2019: unresolved external symbol "public: static void __cdecl Physics::createPhysics(bool,class PhysicsWorld *)" (?createPhysics@Physics@@SAX_NPAVPhysicsWorld@@@Z) referenced in function "bool __cdecl cf_physicsInitWorld(class SimObject *,int,char const * *)" (?cf_physicsInitWorld@@YA_NPAVSimObject@@HPAPBD@Z)
1>physicsPlugin.obj : error LNK2019: unresolved external symbol "public: static void __cdecl Physics::destroyPhysics(bool)" (?destroyPhysics@Physics@@SAX_N@Z) referenced in function "void __cdecl cf_physicsDestroyWorld(class SimObject *,int,char const * *)" (?cf_physicsDestroyWorld@@YAXPAVSimObject@@HPAPBD@Z)

am using GMK 1_2_12
Torque 3D 1.1-2
with nvida v2.8.4 SDK

I have read a few things on what it could be, either I am missing a dependency (if so which ones?) or that is looking for 2.8.3 sdk files and I have to update some of the files (which ones and where?)

#1
10/23/2012 (12:34 am)
Those type of errors are usually trying to tell you that one particular function, that has no body in *.cpp but is declared in *.h, is being called from another class. Therefore, the function (i.e void physicsInit (char *const);) cannot be executed, because, it does not have a body.