im trying to create a dummy object from my cPlayerInfo class inside a member function of another class.
my error:
Code:
winmain.obj : error LNK2019: unresolved external symbol "public: __thiscall cPlayerInfo::cPlayerInfo(class cPlayerInfo const &)" (??0cPlayerInfo@@QAE@ABV0@@Z) referenced in function "public: class cPlayerInfo __thiscall cParser::Decipher(char * const)" (?Decipher@cParser@@QAE?AVcPlayerInfo@@QAD@Z)
C:\Documents and Settings\David\My Documents\C++\WinSock\AsynchServer\server\Debug\server.exe : fatal error LNK1120: 1 unresolved externals
now here is my function:
i am trying to return a cPlayerInfo object that will be created based on the contents of "message".. the commented lines were stuff that doesnt work... and the lines below that dont work either
Code:
cPlayerInfo cParser::Decipher(char message[])
{
std::string s = message;
std::string sub = s.substr(0, 4);
std::cout << sub;
//cPlayerInfo fakePlayer;
//fakePlayer.id = NULL;
cPlayerInfo fake;
fake.id = NULL;
return fake;
}
thanks in advance OldPendant (you usually answer my cpp questions haha)..
anyone else feel free to answer too :)