Subject: [Boost-bugs] [Boost C++ Libraries] #8492: Using BOOST_THREAD_DYN_LINK causes error LNK2019
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-25 09:47:49
#8492: Using BOOST_THREAD_DYN_LINK causes error LNK2019
------------------------------------------+---------------------------------
Reporter: lhoch@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.53.0 | Severity: Problem
Keywords: |
------------------------------------------+---------------------------------
HI
I am using boost thread and linking it dynamically.
specifically I use the BOOST_THREAD_DYN_LINK definition.
when I use try_join_for
(template <class Rep, class Period>
bool try_join_for(const chrono::duration<Rep, Period>& rel_time))
I get linkage error:
error LNK2019: unresolved external symbol "__declspec(dllimport) public:
bool __cdecl boost::thread::try_join_until(class
boost::chrono::time_point<class boost::chrono::system_clock,class
boost::chrono::duration<__int64,class boost::ratio<1,1000000000> > > const
&)"
(__imp_?try_join_until_at_thread@boost@@QEAA_NAEBV?$time_point_at_Vsystem_clock_at_chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@chrono_at_2@@Z)
referenced in function "public: bool __cdecl
boost::thread::try_join_until<class boost::chrono::steady_clock,class
boost::chrono::duration<__int64,class boost::ratio<1,1000000000> > >(class
boost::chrono::time_point<class boost::chrono::steady_clock,class
boost::chrono::duration<__int64,class boost::ratio<1,1000000000> > > const
&)"
(??$try_join_until_at_Vsteady_clock_at_chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@thread_at_boost@@QEAA_NAEBV?$time_point_at_Vsteady_clock_at_chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@chrono_at_1@@Z)
Note that if I remove the definition, it compiles fine.
we work on windows, using visual studio 2010 in 64bit
thanks
Lior
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8492> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC