I am getting the following error while i compile boost thread
under VC++ 6.0. Could any of you please help me out.
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.
Well pretty obviously you have to turn on multithreading support in your compiler before building the library: check out the code generation
Hello,
I have followed what you have told me 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@std@@UAE@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@std@@QAE@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@std@@UAE@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@std@@QAE@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@y..., "John Maddock"
in the IDE.
John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm