Before this, I want to let you know I am using Visual Studio. My problem is fighter.obj : error LNK2005: "public: __thiscall fighter::fighter(void)" (??0fighter@@QAE@XZ) already defined in All out brawling.obj
I have tried for a while, and it is probably a simple mistake since I am new to including other files. This is what my code looks like:
remove the #include "fighter.cpp" from main.cpp. Linking seperate .cpp files eliminates the need for including a .cpp file and linking is the correct way to do it.