id summary reporter owner description type status milestone component version severity resolution keywords cc 5751 can not (find) compile boost/thread/read_write_mutex.hpp fsshl@… "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 " Bugs closed To Be Determined None Boost 1.46.1 Problem invalid fsshl@…