Boost C++ Libraries: Ticket #42: Can't compile example for boot thread https://svn.boost.org/trac10/ticket/42 <pre class="wiki">Hi, I ran into two problems when trying out the usage example for boost::thread thread class, file:///C:/boost_1_26_0/libs/thread/doc/thread.html#Exa mple 1). The compiler couldn't find the declaration for xtime. Looks like xtime.hpp should be included. 2). The MSVC 6.00 compiler returns the following error, error C2228: left of '.join' must have class/struct/union type After I change the line, "boost::thread thrd (thread_alarm(secs));" to "boost::thread thrd (thread_alarm(5));", it builds and runs correctly. I'm using MSVC 6.0. Thanks, Jim Wang </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/42 Trac 1.4.3 bill_kempf Mon, 30 Dec 2002 15:48:27 GMT status changed https://svn.boost.org/trac10/ticket/42#comment:1 https://svn.boost.org/trac10/ticket/42#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket