Opened 21 years ago

Closed 20 years ago

#42 closed Bugs (None)

Can't compile example for boot thread

Reported by: nobody Owned by: bill_kempf
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

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

Change History (1)

comment:1 by bill_kempf, 20 years ago

Status: assignedclosed
Note: See TracTickets for help on using tickets.