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::basic_string(class
std::basic_string const &)"
(??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
already defined in boost_signaltest.obj
msvcprt.lib(MSVCP70.dll) : error LNK2005: "public: __thiscall
std::basic_string::~basic_string(void)"
(??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
already defined in boost_signaltest.obj
msvcprt.lib(MSVCP70.dll) : error LNK2005: "public: __thiscall
std::basic_string::basic_string(char const *)"
(??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z)
already defined in boost_signaltest.obj
MSVCRT.lib(MSVCR70.dll) : error LNK2005: "public: __thiscall
exception::exception(void)" (??0exception@@QAE@XZ) already defined in
LIBCD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR70.dll) : error LNK2005: "public: virtual __thiscall
exception::~exception(void)" (??1exception@@UAE@XZ) already defined in
LIBCD.lib(stdexcpt.obj)
MSVCRT.lib(MSVCR70.dll) : error LNK2005: "public: __thiscall
exception::exception(class exception const &)"
(??0exception@@QAE@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@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@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