Boost logo

Boost Users :

From: satya_vajja (satya_vajja_at_[hidden])
Date: 2002-10-13 09:48:26


Hello,
 I tried setting the option to multithreaded dll and got the
following errors
Could you please help me out.

.
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: virtual
__thiscall std::runtime_error::~runtime_error(void)" (??
1runtime_error_at_std@@UAE_at_XZ) already defined in exceptions.obj
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::runtime_error::runtime_error(class runtime_error::runtime_error
const &)" (??0runtime_error_at_std@@QAE_at_ABV01@@Z) already defined in
exceptions.obj
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __assert already defined in
LIBCMTD.lib(assert.obj)
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: virtual
__thiscall std::runtime_error::~runtime_error(void)" (??
1runtime_error_at_std@@UAE_at_XZ) already defined in exceptions.obj; second
definition ignored
msvcprtd.lib(MSVCP60D.dll) : warning LNK4006: "public: __thiscall
std::runtime_error::runtime_error(class runtime_error::runtime_error
const &)" (??0runtime_error_at_std@@QAE_at_ABV01@@Z) already defined in
exceptions.obj; second definition ignored
MSVCRTD.lib(MSVCRTD.dll) : warning LNK4006: __assert already defined
in LIBCMTD.lib(assert.obj); second definition ignored
   Creating library Debug/thread1.lib and object Debug/thread1.exp
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of
other libs; use /NODEFAULTLIB:library
LINK : warning LNK4049: locally defined symbol "_on_thread_exit"
imported
Debug/thread1.dll : fatal error LNK1169: one or more multiply defined
symbols found
Error executing link.exe.

thread1.dll - 4 error(s), 5 warning(s)
Thanks
Satya

--- In Boost-Users_at_y..., "alexander_jasper" <alexander.jasper_at_l...>
wrote:
> --- In Boost-Users_at_y..., "satya_vajja" <satya_vajja_at_y...> wrote:
>
> > d:\boost\boost_1_29_0\libs\thread\src\thread.cpp(107) : error
> > C2065: '_beginthreadex' : undeclared identifier
> >
> > When i define _MT compile flag the compiling error goes off but
> i get
> > lot of linker errors.
>
> For using _beginthread you have to use the multi-threaded runtime
> lib. In VC6 you can choose the runtime lib in Project
> Settings->Compiler Settings->Code Generation. Use multi threaded
DLL
> in all your sub projects. And do not mix multiple versions of the
> runtinme lib.
>
> hope this helps
>
> Alex


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