[Boost-bugs] [Boost C++ Libraries] #5751: can not (find) compile boost/thread/read_write_mutex.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #5751: can not (find) compile boost/thread/read_write_mutex.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-04 16:00:10


#5751: can not (find) compile boost/thread/read_write_mutex.hpp
------------------------------+---------------------------------------------
 Reporter: fsshl@… | Owner:
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 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_at_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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5751>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC