Game Development Community

Kart kit questions

by Tony Bellinger · in Torque Game Builder · 05/08/2009 (3:09 pm) · 7 replies

I'm getting the following when trying to compile.

I am very new to compiling stuff and have probably just missed a step

8>Linking...
8>t2dParticleEffect.obj : error LNK2019: unresolved external symbol "bool __cdecl mode7AddParticle(class t2dParticleEffect *)" (?mode7AddParticle@@YA_NPAVt2dParticleEffect@@@Z) referenced in function "bool __cdecl ct2dParticleEffectmode7AddObject(class t2dParticleEffect *,int,char const * *)" (?ct2dParticleEffectmode7AddObject@@YA_NPAVt2dParticleEffect@@HPAPBD@Z)


8>t2dScroller.obj : error LNK2019: unresolved external symbol "bool __cdecl mode7AddScroller(class t2dScroller *)" (?mode7AddScroller@@YA_NPAVt2dScroller@@@Z) referenced in function "bool __cdecl ct2dScrollermode7AddObject(class t2dScroller *,int,char const * *)" (?ct2dScrollermode7AddObject@@YA_NPAVt2dScroller@@HPAPBD@Z)


8>t2dStaticSprite.obj : error LNK2019: unresolved external symbol "bool __cdecl mode7AddSprite(class t2dStaticSprite *)" (?mode7AddSprite@@YA_NPAVt2dStaticSprite@@@Z) referenced in function "bool __cdecl ct2dStaticSpritemode7AddObject(class t2dStaticSprite *,int,char const * *)" (?ct2dStaticSpritemode7AddObject@@YA_NPAVt2dStaticSprite@@HPAPBD@Z)
8>../../../tgb/TorqueGameBuilder_DEBUG.exe : fatal error LNK1120: 3 unresolved externals

I have added the mode7.cc to the project (maybe not correctly).

How I added it.
Project
add existing item
mode7.cc

full rebuild
error still exists

===================================================
Additional info in the hope of getting a response:

I am using visual studio 2005 pro

The issue is as follows

Some changes were required to be made to some of the engines .h and .cc files

Some of these changes refer to functions in another .cc file (no header)

I used "add existing item" to add the extra .cc file to my project
but the other changes don't seem to find the required funtions



#2
05/09/2009 (10:42 am)
Hmmmm.... did you do a full clean before the rebuild? The issue is that your linker wants to find where those three functions are defined. It might be that you placed those declarations inside the classes instead of outside?

Also, did you add the mode7 file to both TGBGame and TorqueGameBuilder? You have to add to both.
#3
05/09/2009 (11:33 am)
Hey guys. The TGB Kart Kit has its own private forums now: TGB Kart Kit.

Licensed owners should discuss there from now on.
#4
05/09/2009 (11:44 am)
Thanks Mich. Can you somehow add me as an owner, so I can provide support over there from hereon?
#5
05/09/2009 (12:18 pm)
Guess that would be a good idea ;)

It's been taken care of.
#6
05/09/2009 (5:52 pm)

woohoo -- it compiles now.

I still don't get mode7 -- I probably screwed up some of the code changes.

I'm going to start over and see how it goes.
#7
05/09/2009 (10:59 pm)
That sounds good, Tony. Post any Q's in the new forum. You definitely have to be sure to put the modifications in the right places. Even a couple lines in the wrong spot, for certain things, and the mode7 effect won't be enabled. :)