Boost C++ Libraries: Ticket #8492: Using BOOST_THREAD_DYN_LINK causes error LNK2019 https://svn.boost.org/trac10/ticket/8492 <p> HI I am using boost thread and linking it dynamically. specifically I use the BOOST_THREAD_DYN_LINK definition. </p> <p> when I use try_join_for (template &lt;class Rep, class Period&gt; bool try_join_for(const chrono::duration&lt;Rep, Period&gt;&amp; rel_time)) </p> <p> I get linkage error: </p> <p> error LNK2019: unresolved external symbol "<span class="underline">declspec(dllimport) public: bool </span>cdecl boost::thread::try_join_until(class boost::chrono::time_point&lt;class boost::chrono::system_clock,class boost::chrono::duration&lt;<span class="underline">int64,class boost::ratio&lt;1,1000000000&gt; &gt; &gt; const &amp;)" (</span>imp_?try_join_until@thread@boost@@QEAA_NAEBV?$time_point@Vsystem_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@chrono@2@@Z) referenced in function "public: bool <span class="underline">cdecl boost::thread::try_join_until&lt;class boost::chrono::steady_clock,class boost::chrono::duration&lt;</span>int64,class boost::ratio&lt;1,1000000000&gt; &gt; &gt;(class boost::chrono::time_point&lt;class boost::chrono::steady_clock,class boost::chrono::duration&lt;<span class="underline">int64,class boost::ratio&lt;1,1000000000&gt; &gt; &gt; const &amp;)" (??$try_join_until@Vsteady_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@thread@boost@@QEAA_NAEBV?$time_point@Vsteady_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@chrono@1@@Z) </span></p> <p> Note that if I remove the definition, it compiles fine. </p> <p> we work on windows, using visual studio 2010 in 64bit </p> <p> thanks </p> <p> Lior </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8492 Trac 1.4.3 viboes Thu, 25 Apr 2013 16:44:27 GMT owner, status changed https://svn.boost.org/trac10/ticket/8492#comment:1 https://svn.boost.org/trac10/ticket/8492#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Hi, isn't this a duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8458" title="#8458: Bugs: -DBOOST_THREAD_DONT_USE_CHRONO in thread.obj.rsp but not explicitly set (closed: fixed)">#8458</a> "-DBOOST_THREAD_DONT_USE_CHRONO in thread.obj.rsp but not explicitly set"? </p> <p> Please take a look and let me know if the attached patch to this ticket works for you. </p> Ticket viboes Fri, 17 May 2013 19:29:37 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8492#comment:2 https://svn.boost.org/trac10/ticket/8492#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> Ticket