I am compiling a project for a Computer Science class and I get redefined symbols EVERYWHERE in the linker so eventually I just FORECED output.
Here are the errors, I can't display the code, there are too many files and too long of code to scan through without a find command.
I checked that every include I ran used #ifndef and #def for their preprocessor flags. But for some reason MS won't leave me alone, but I think it works on FreeBSD.
Here are SOME of the errors, there are 1280 moreCode:--------------------Configuration: fishy - Win32 Debug-------------------- Compiling... Aquamain.cpp Onedwalk.cpp Sixflips.cpp Linking... LINK : warning LNK4075: ignoring /INCREMENTAL due to /FORCE specification Environ.obj : warning LNK4006: "public: __thiscall apstring::apstring(void)" (??0apstring@@QAE@XZ) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: __thiscall apstring::apstring(char const *)" (??0apstring@@QAE@PBD@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: __thiscall apstring::apstring(class apstring const &)" (??0apstring@@QAE@ABV0@@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: __thiscall apstring::~apstring(void)" (??1apstring@@QAE@XZ) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: class apstring const & __thiscall apstring::operator=(class apstring const &)" (??4apstring@@QAEABV0@ABV0@@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: class apstring const & __thiscall apstring::operator=(char const *)" (??4apstring@@QAEABV0@PBD@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: class apstring const & __thiscall apstring::operator=(char)" (??4apstring@@QAEABV0@D@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: int __thiscall apstring::length(void)const " (?length@apstring@@QBEHXZ) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: char const * __thiscall apstring::c_str(void)const " (?c_str@apstring@@QBEPBDXZ) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: char & __thiscall apstring::operator[](int)" (??Aapstring@@QAEAADH@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: char __thiscall apstring::operator[](int)const " (??Aapstring@@QBEDH@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "class ostream & __cdecl operator<<(class ostream &,class apstring const &)" (??6@YAAAVostream@@AAV0@ABVapstring@@@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "class istream & __cdecl operator>>(class istream &,class apstring &)" (??5@YAAAVistream@@AAV0@AAVapstring@@@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "class istream & __cdecl getline(class istream &,class apstring &)" (?getline@@YAAAVistream@@AAV1@AAVapstring@@@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: class apstring const & __thiscall apstring::operator+=(class apstring const &)" (??Yapstring@@QAEABV0@ABV0@@Z) already defined in Display.obj; second definition ignored Environ.obj : warning LNK4006: "public: class apstring const & __thiscall apstring::operator+=(char)" (??Yapstring@@QAEABV0@D@Z) already defined in Display.obj; second definition ignored