|
Boost Users : |
Subject: Re: [Boost-users] 4 link errors related to boost_thread_vc100_mt-1_47 libraries
From: Igor R (boost.lists_at_[hidden])
Date: 2011-11-16 18:13:08
> I built boost_thread_vc100_mt-1_47.lib and boost_thread_vc100_mt-1_47.dll successfully by using 1_47 source codes without changing any thing.
>
> When I used the libraries in my project, I got the following link errors:
>
> 1>boost_UT.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __cdecl
> boost::thread::sleep(class boost::posix_time::ptime const &)" (__imp_?sleep_at_thread@boost@@SAXABVptime_at_posix_time_at_2@@Z)
> 1>boost_UT.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: static class
> boost::intrusive_ptr<struct boost::detail::thread_data_base> __cdecl boost::thread::make_thread_info(void (__cdecl*)(void))"
> (__imp_?make_thread_info_at_thread@boost@@CA?AV?$intrusive_ptr_at_Uthread_data_base_at_detail@boost@@@2_at_P6AXXZ@Z)
> 1>boost_UT.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl
> boost::detail::free_raw_heap_memory(void *)" (__imp_?free_raw_heap_memory_at_detail@boost@@YAXPAX_at_Z)
> 1>boost_UT.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void * __cdecl
> boost::detail::allocate_raw_heap_memory(unsigned int)" (__imp_?allocate_raw_heap_memory_at_detail@boost@@YAPAXI_at_Z)
<...>
> My working environment:
> Windows 7 + Visual Studio VC++10.
Are you sure that the linker finds Boost.Thread library? I.e. do you
add its path to the linker paths?
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