Boost C++ Libraries: Ticket #6152: Boost undefined reference during compiling https://svn.boost.org/trac10/ticket/6152 <p> Hi, </p> <p> I am getting a compile error trying to compile a simple tester program from the documentation. </p> <pre class="wiki">C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text+0xa6): undefined reference to `_imp___ZN5boost6thread4joinEv' C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text+0xb4): undefined reference to `_imp___ZN5boost6threadD1Ev' C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text+0xcf): undefined reference to `_imp___ZN5boost6threadD1Ev' C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text$_ZN5boost11this_thread18interruptible_waitEy[boost::this_thread::interruptible_wait(unsigned long long)]+0x4a): undefined reference to `_imp___ZN5boost11this_thread18interruptible_waitEPvNS_6detail7timeoutE' C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text$_ZN5boost6threadC1IPFvvEEET_NS_10disable_ifINS_14is_convertibleIRS4_NS_6detail13thread_move_tIS4_EEEEPNS0_5dummyEE4typeE[boost::thread::thread&lt;void (*)()&gt;(void (*)(), boost::disable_if&lt;boost::is_convertible&lt;void (*&amp;)(), boost::detail::thread_move_t&lt;void (*)()&gt; &gt;, boost::thread::dummy*&gt;::type)]+0x23): undefined reference to `_imp___ZN5boost6thread12start_threadEv' collect2: ld returned 1 exit status </pre><p> I am using mingw 4.5 and g++ 4.5.2 on windows. </p> <p> I hope someone can help me solve this problem. And I hope this is the right place to ask. :) </p> <p> Thanks. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6152 Trac 1.4.3 tasptz@… Thu, 12 Apr 2012 14:08:09 GMT <link>https://svn.boost.org/trac10/ticket/6152#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6152#comment:1</guid> <description> <p> Do you define "BOOST_USE_WINDOWS_H"? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 03 Jan 2013 18:21:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6152#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6152#comment:2</guid> <description> <p> I suspect that you are missing the link with boost_thread. </p> <p> Could we close this ticket? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 16 Jan 2013 22:29:05 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6152#comment:3 https://svn.boost.org/trac10/ticket/6152#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> Ticket