Hi guys,
I have just started to use boost::serialization to serialize a complex data structure in a VS2005 MFC project.
I'm still very unfamiliar with boost but i need to get this done by then end of the day.
I ran into a couple of linker errors during compilation:
error
LNK2005: "public: unsigned int __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::size(void)const "
(?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ)
already defined in msvcprt.lib(MSVCP80.dll) libcpmt.lib
---
Hi,
Your first error looks like your are trying to link both static (libcpmt.lib) and dynamic (msvcprt.lib) CRTs at the same time. This dependency could be hidden in a third party lib, including boost. Make sure that everything in the same module (dll, exe) links to the same version.
Adding /verbose link usually helps.
Regards,
David.