Im not really sure why im getting this probably some type o.
testingserv.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Character::InUse(void)" (?InUse@Character@@QAE_NXZ)
Debug/testingserv.exe : fatal error LNK1120: 1 unresolved externals
Code:
//from header file
public:
bool InUse();
private:
int id;
//from the cpp
bool Character::InUse()
{
if(id == -1) // if !in use
{
return false;
}
return true;
}
//my call thats causing this
int OpenSpot() // defined at the start of the program
{
for(int x = 0; x<50;x++)
{
if(!Players[x].InUse()) //Players is a array of 50 Characters
{
return x; // found a open spot
}
}
return -1; //no open spots send error to client
}
Does ne1 see my problem?