d:\boost\boost_1_29_0\libs\thread\src\thread.cpp(107) : error C2065: '_beginthre
Hello, I am getting the following error while i compile boost thread library 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. satya_vajja@yahoo.com Thanks Satya
--- In Boost-Users@y..., "satya_vajja"
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
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@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..., "alexander_jasper"
--- In Boost-Users@y..., "satya_vajja"
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
Thank you very much for your help.. The problem has been fixed
--- In Boost-Users@y..., "satya_vajja"
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@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..., "alexander_jasper"
wrote: --- In Boost-Users@y..., "satya_vajja"
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
I am getting the following error while i compile boost thread library 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 options in the IDE. John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm
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
participants (3)
-
alexander_jasper
-
John Maddock
-
satya_vajja