I'm trying to compile the Microsoft Sample "Overloading the << Operator for Your Own Classes" but get the following link error:
error LNK1169: one or more multiply defined symbols found
error LNK2005: "class std::basic_ostream > & __cdecl operator<<(class std::basic_ostream > &,class Date const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVDate@@@Z) already defined in Date.obj
Anybody any idea why this is not compiling?
.cppfiles: amain.cppandDate.cpp? The linker mentionsDate.obj, but the example consists of a single source file. If you have made any changes can you post them? - hmjd