|
Boost Users : |
From: Roel Vanhout (roel_at_[hidden])
Date: 2003-07-23 12:26:37
Hello all,
I'm sorry if this is a faq (it almost has to be) but I couldn't find
anything in the signals documentation nor in the general build instruction.
I've build the signals library using jam as described in the build
instructions, I've added the resulting library to my linker list but
then I get the errors below about several symbols being multiply
defined. I'm using MSVC 7.0 (Visual Studio .Net, not .Net 2003). What do
I do wrong? Thanks.
cheers,
roel
------ Build started: Project: boost_signaltest, Configuration: Debug
Win32 ------
Linking...
msvcprt.lib(MSVCP70.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 boost_signaltest.obj
msvcprt.lib(MSVCP70.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 boost_signaltest.obj
msvcprt.lib(MSVCP70.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> >(char const *)"
(??0?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_PBD@Z)
already defined in boost_signaltest.obj
MSVCRT.lib(MSVCR70.dll) : error LNK2005: "public: __thiscall
exception::exception(void)" (??0exception@@QAE_at_XZ) already defined in
LIBCD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR70.dll) : error LNK2005: "public: virtual __thiscall
exception::~exception(void)" (??1exception@@UAE_at_XZ) already defined in
LIBCD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR70.dll) : error LNK2005: "public: __thiscall
exception::exception(class exception const &)"
(??0exception@@QAE_at_ABV0@@Z) already defined in LIBCD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR70.dll) : error LNK2005: "public: int __thiscall
type_info::operator==(class type_info const &)const "
(??8type_info@@QBEHABV0@@Z) already defined in LIBCD.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall
type_info::type_info(class type_info const &)"
(??0type_info@@AAE_at_ABV0@@Z) already defined in LIBCD.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info &
__thiscall type_info::operator=(class type_info const &)"
(??4type_info@@AAEAAV0_at_ABV0@@Z) already defined in LIBCD.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:library
Debug/boost_signaltest.exe : fatal error LNK1169: one or more multiply
defined symbols found
Build log was saved at
"file://c:\test\boost_signaltest\boost_signaltest\Debug\BuildLog.htm"
boost_signaltest - 10 error(s), 1 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
-- Roel Vanhout - Programmer/Systems Administrator RIKS BV Papenstraat 8 - 6211 LG Maastricht Tel +31 (0)43 388 3708 - Fax +31 (0)43 325 3155
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net