Opened 11 years ago

Closed 11 years ago

#5751 closed Bugs (invalid)

can not (find) compile boost/thread/read_write_mutex.hpp

Reported by: fsshl@… Owned by:
Milestone: To Be Determined Component: None
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc: fsshl@…

Description

in order to fill read_write_mutex.hpp I found 3 files in web read_wirte_mutex.hpp, lock.hpp, read_write_lock.hpp but I got many compile error with my current 1.46.1


root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp In file included from /usr/include/boost/thread/read_write_mutex.hpp:26:0,

from Example12-3.cpp:3:

/usr/local/include/boost/thread/condition.hpp:13:36: error: conflicting declaration ‘typedef class boost::condition_variable_any boost::condition’ /usr/include/boost/thread/detail/lock.hpp:17:7: error: ‘struct boost::condition’ has a previous declaration as ‘struct boost::condition’ In file included from Example12-3.cpp:3:0: /usr/include/boost/thread/read_write_mutex.hpp:64:22: error: field ‘m_waiting_writers’ has incomplete type /usr/include/boost/thread/read_write_mutex.hpp:65:22: error: field ‘m_waiting_readers’ has incomplete type /usr/include/boost/thread/read_write_mutex.hpp:69:22: error: field ‘m_waiting_promotion’ has incomplete type Example12-3.cpp:41:4: error: ‘read_wirte_mutex’ in namespace ‘boost’ does not name a type

Change History (1)

comment:1 by Steven Watanabe, 11 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.