Opened 17 years ago

Closed 16 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:



I ran into two problems when trying out the usage 
example for boost::thread thread class, 
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 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.


Jim Wang

Change History (1)

comment:1 Changed 16 years ago by bill_kempf

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