Unresolved external symbols
Code:
main.obj||error LNK2019: unresolved external symbol "public: void __thiscall player::transfer(class player &)" (?transfer@player@@QAEXAAV1@@Z) referenced in function _main|
main.obj||error LNK2019: unresolved external symbol "public: void __thiscall swordsman::AI(class player &)" (?AI@swordsman@@QAEXAAVplayer@@@Z) referenced in function _main|
main.obj||error LNK2019: unresolved external symbol "public: bool __thiscall player::useMW(void)" (?useMW@player@@QAE_NXZ) referenced in function _main|
main.obj||error LNK2019: unresolved external symbol "public: bool __thiscall player::useHeal(void)" (?useHeal@player@@QAE_NXZ) referenced in function _main|
main.obj||error LNK2019: unresolved external symbol "public: void __thiscall player::isDead(void)" (?isDead@player@@QAEXXZ) referenced in function _main|
main.obj||error LNK2019: unresolved external symbol "void __cdecl showinfo(class player &,class player &)" (?showinfo@@YAXAAVplayer@@0@Z) referenced in function _main|
main.obj||error LNK2019: unresolved external symbol "public: bool __thiscall player::death(void)" (?death@player@@QAE_NXZ) referenced in function _main|
main.obj||error LNK2019: unresolved external symbol "public: void __thiscall player::reFill(void)" (?reFill@player@@QAEXXZ) referenced in function _main|
main.obj||error LNK2019: unresolved external symbol "public: __thiscall swordsman::swordsman(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0swordsman@@QAE@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main|
C:\Users\Geft\Desktop\06\ex3\main.exe||fatal error LNK1120: 9 unresolved externals|
||=== Build finished: 10 errors, 0 warnings (0 minutes, 0 seconds) ===|
I have the following files where the headers are class declarations and the corresponding cpp files are the definitions:
Code:
container.cpp
container.h
player.cpp
player.h includes container.h
main.cpp includes swordsman.h
swordsman.cpp
swordsman.h includes player.h
What could be the problem?