Attack( &Main, &enemy );
&&
|
|
------ Build started: Project: Text based test rpg, Configuration: Debug Win32 ------ Linking... BattleSystem.obj : error LNK2005: "public: __thiscall Character::Character(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,int,int,int,int)" (??0Character@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HHHHH@Z) already defined in main.obj BattleSystem.obj : error LNK2005: "public: __thiscall Character::Character(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,int,int,int,int,int,int)" (??0Character@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HHHHHHH@Z) already defined in main.obj D:\My Documents\Visual Studio 2008\Projects\RPG\Debug\Text based test rpg.exe : fatal error LNK1169: one or more multiply defined symbols found Build log was saved at "file://d:\My Documents\Visual Studio 2008\Projects\RPG\Text based test rpg\Debug\BuildLog.htm" Text based test rpg - 3 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
i have the entire class, and all its methods(functions), in Character.h header file. included in both main.cpp and BattleSystem.cpp |