Modify

Opened 16 years ago

Closed 15 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

Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by bill_kempf

Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain bill_kempf.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.