Boost logo

Boost :

Subject: [boost] error LNK2005
From: Kevin Li (kevin.li_2008_at_[hidden])
Date: 2010-01-13 13:38:14


Hello, when the run boost test cases (Version 1.41.0), I got quite a few LNK2005 errors. Below is an example when run a Data_Time test:

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

It seems to me that there is a conflict between system library and the Boost library, but I am not sure if this is a bug or the Boost library is not correctly built. Any clue would be very appreciated.

Best regards,
--Kevin
_________________________________________________________________


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk