Help with LNK2001

Hello, everyone!

I... have a problem that I have no idea how to solve because I don't know what's wrong. Could you guys point it out for me, please?

https://github.com/Chipp93/Simple-Text-RPG/tree/master/Simple%20Text%20RPG/Simple%20Text%20RPG

Here's the code on github.

It gives me this Error that talks about ... just so you know where to find the function... Player.cpp line 18 or Player.h line 36. I know my code is a mess right now. I'll clean it up when I learn new stuff. Thanks in advance!!!

Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "void __cdecl ShowBattleStats(class Player *,class Enemy *)" (?ShowBattleStats@@YAXPAVPlayer@@PAVEnemy@@@Z) Simple Text RPG C:\Users\David\Documents\Visual Studio 2015\Projects\Simple Text RPG\Simple Text RPG\Main.obj 1
On line 19 you have declared the prototype void ShowBattleStats(Player*, Enemy*);
but you have not written the actual function.
If you add this somewhere in your Main.cpp it compiles.
1
2
3
4
void ShowBattleStats (Player* p, Enemy* e)
{

}

Topic archived. No new replies allowed.