I used the msvc\8\wksbullet.sln (and VS said it could convert it to work with VS 9 just fine). However, for both "Release" and "Debug" configurations I get:
Code: Select all
1>libcpmtd.lib(locale0.obj) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(char const *)" (??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libcpmtd.lib(locale0.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in msvcprtd.lib(MSVCP90D.dll)
...
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: static void __cdecl std::locale::facet::operator delete(void *)" (??3facet@locale@std@@SAXPAX@Z) already defined in libcpmtd.lib(locale0.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(char const *)" (??0bad_cast@std@@QAE@PBD@Z) already defined in LIBCMTD.lib(stdexcpt.obj)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>C:\Users\avik\Documents\Visual Studio 2008\Projects\boost_tests\Debug\boost_tests.exe : fatal error LNK1169: one or more multiply defined symbols found
I would be glad if someone could help me out, including if someone has got it to work with VS2008 express.