Hmm i hate these linking errors, the error messages are next to useless. Or at least seem it. Here's whats up, all im doing is making up some classes to show use of inheritance. It compiles ok, then I get this error at link time:
CCharacter.obj : error LNK2001: unresolved external symbol "public: __thiscall CPlayer::CPlayer(void)" (??0CPlayer@@QAE@XZ)
Debug/CCharacter.exe : fatal error LNK1120: 1 unresolved externals
the relevant code is:
Code:class CPlayer : public CCharacter { public: CPlayer(); void Move() {cout << m_sName << " moves" << endl;} }; int main() { CPlayer play1; play1.Attack(); play1.Use(); play1.Move(); return 0; }