|
Boost-Build : |
Subject: [Boost-build] error LNK2005
From: Kevin Li (kevin.li_2008_at_[hidden])
Date: 2010-01-13 10:52:46
Hello, I have built both BOOST DLL and static linked libraries, when a run a boost test case, I got the following linking error. I am not sure what the problem is. Any idea or clue would be very much appreciated:
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_ABV01@@Z) already defined in dates_as_strings.obj
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_XZ) already defined in dates_as_strings.obj
Best regards,
--Kevin
_________________________________________________________________
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk