我得到了这个错误,我根本没有得到。我将其解释为我有不止一次定义不同的东西,但是当我查看我的代码时,我只是看不到它。我上传了错误消息指向的代码:
teamdata.obj:-1: error: LNK2005: "public: int __thiscall teamdata::getTeamnumber(void)" (?getTeamnumber@teamdata@@QAEHXZ) already defined in scouting.obj
teamdata.obj:-1: error: LNK2005: "public: bool __thiscall teamdata::operator<(class teamdata)" (??Mteamdata@@QAE_NV0@@Z) already defined in scouting.obj
release\Scouting.exe:-1: error: LNK1169: one or more multiply defined symbols found
链接:teamdata.h http://pastebin.com/5u0YzK84
teamdata.cpp http://pastebin.com/GP0zRzpw