Q: Need to define an unresolved external symbol?


(Covernant) #1

I get this error when i try to compile

g_weapon.obj : error LNK2019: unresolved external symbol _G_fTeam referenced in function _Weapon_Engineer

Ok i figure its the one where i need to specifie an additional libpath?
But what is the additional libpath directory?

Now i tryed the subsystem thingy too and still get the same thing.

Linking...
   Creating library .\Debug/qagame_mp_x86.lib and object .\Debug/qagame_mp_x86.exp
g_weapon.obj : error LNK2019: unresolved external symbol _G_fTeam referenced in function _Weapon_Engineer
..\Debug/qagame_mp_x86.dll : fatal error LNK1120: 1 unresolved externals

And the whole line looks like this.

} else if ( G_CountTeamLandmines(ent->client->sess.sessionTeam) >= MAX_TEAM_LANDMINES && G_fTeam(traceEnt) == ent->client->sess.sessionTeam) {

What is it with that _G_fTeam?
Oh ill add that im using Visual C++ 2005 Express Edition.

Woo 90 views!

I should have posted this in Compiling in windows i quess…