is boost 1.46.1 contain thread/read_write_mutex.hpp

dear boost progamers:
when I tried to compile from my g++4.5.2 a simple file which include
#include

On Wed, Aug 3, 2011 at 6:15 PM, Eric Lin
dear boost progamers:
when I tried to compile from my g++4.5.2 a simple file which include #include
------- root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp Example12-3.cpp:3:45: fatal error: boost/thread/read_write_mutex.hpp: No such file or directory compilation terminated. --------- and I check from / of my ubuntuLinux with boost 1.46.1 I can not find any file name as read_wirte_mutex.hpp --------- root@eric-laptop:/# find . | grep read_write_mutex.hpp root@eric-laptop:/#
It won't compile because that file does not exist. It sounds like you should get a new cppcookbook, given the number of examples you've posted about that are broken. You should probably first try emailing the author of that book regarding these problems. I believe you're looking for a shared_mutex. Brian

Dear boost experts:
so I follow your suggestion, add #include <
#include
Date: Thu, 4 Aug 2011 08:30:50 -0700 From: brian.budge@gmail.com To: boost-users@lists.boost.org Subject: Re: [Boost-users] is boost 1.46.1 contain thread/read_write_mutex.hpp
On Wed, Aug 3, 2011 at 6:15 PM, Eric Lin
wrote: dear boost progamers:
when I tried to compile from my g++4.5.2 a simple file which include #include
------- root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp Example12-3.cpp:3:45: fatal error: boost/thread/read_write_mutex.hpp: No such file or directory compilation terminated. --------- and I check from / of my ubuntuLinux with boost 1.46.1 I can not find any file name as read_wirte_mutex.hpp --------- root@eric-laptop:/# find . | grep read_write_mutex.hpp root@eric-laptop:/# It won't compile because that file does not exist. It sounds like you should get a new cppcookbook, given the number of examples you've posted about that are broken. You should probably first try emailing the author of that book regarding these problems. I believe you're looking for a shared_mutex.
Brian _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Thu, Aug 4, 2011 at 11:52 AM, Eric Lin
Dear boost experts:
so I follow your suggestion, add #include < #include
--- but I still get compile error about root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp Example12-3.cpp:41:4: error: ‘read_wirte_mutex’ in namespace ‘boost’ does not name a type ------------ about the program segment on ----- private: std::list<T> list_; boost::read_wirte_mutex rwMutex_; }; ----------- do you (or any boost expert) know/suggest what kind function(subroutine) I can use to substitute it in share_mutex.hpp, so it still not deviate book author's main intent of the program? need your help and thanks a lot in advance, Eric ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ----------------------------------------
Date: Thu, 4 Aug 2011 08:30:50 -0700 From: brian.budge@gmail.com To: boost-users@lists.boost.org Subject: Re: [Boost-users] is boost 1.46.1 contain thread/read_write_mutex.hpp
On Wed, Aug 3, 2011 at 6:15 PM, Eric Lin
wrote: dear boost progamers:
when I tried to compile from my g++4.5.2 a simple file which include #include
------- root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp Example12-3.cpp:3:45: fatal error: boost/thread/read_write_mutex.hpp: No such file or directory compilation terminated. --------- and I check from / of my ubuntuLinux with boost 1.46.1 I can not find any file name as read_wirte_mutex.hpp --------- root@eric-laptop:/# find . | grep read_write_mutex.hpp root@eric-laptop:/# It won't compile because that file does not exist. It sounds like you should get a new cppcookbook, given the number of examples you've posted about that are broken. You should probably first try emailing the author of that book regarding these problems. I believe you're looking for a shared_mutex.
Brian
The code is wrong, and we cannot divine the original author's intent. I suggest you contact the author regarding their broken code. Brian

Dear boost programers: http://examples.oreilly.com/9780596007614/ 12-3.cpp is the program I am talking about. although I will try to contact authors(4 D.Ryan Stephens Christopher Diggins Jonathan Turkanis Jeff Cogswell , and I can only find email of second one, and I emailed him but never get him reply) hope boost experts/programers take care on this problem a little bit more deeper and like to see your post again to make this problem be fixed someway. Eric
Date: Thu, 4 Aug 2011 12:11:02 -0700 From: brian.budge@gmail.com To: boost-users@lists.boost.org Subject: Re: [Boost-users] is boost 1.46.1 contain thread/read_write_mutex.hpp
On Thu, Aug 4, 2011 at 11:52 AM, Eric Lin
wrote: Dear boost experts:
so I follow your suggestion, add #include < #include
--- but I still get compile error about root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp Example12-3.cpp:41:4: error: ‘read_wirte_mutex’ in namespace ‘boost’ does not name a type ------------ about the program segment on ----- private: std::list<T> list_; boost::read_wirte_mutex rwMutex_; }; ----------- do you (or any boost expert) know/suggest what kind function(subroutine) I can use to substitute it in share_mutex.hpp, so it still not deviate book author's main intent of the program? need your help and thanks a lot in advance, Eric ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ----------------------------------------
Date: Thu, 4 Aug 2011 08:30:50 -0700 From: brian.budge@gmail.com To: boost-users@lists.boost.org Subject: Re: [Boost-users] is boost 1.46.1 contain thread/read_write_mutex.hpp
On Wed, Aug 3, 2011 at 6:15 PM, Eric Lin
wrote: dear boost progamers:
when I tried to compile from my g++4.5.2 a simple file which include #include
------- root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp Example12-3.cpp:3:45: fatal error: boost/thread/read_write_mutex.hpp: No such file or directory compilation terminated. --------- and I check from / of my ubuntuLinux with boost 1.46.1 I can not find any file name as read_wirte_mutex.hpp --------- root@eric-laptop:/# find . | grep read_write_mutex.hpp root@eric-laptop:/# It won't compile because that file does not exist. It sounds like you should get a new cppcookbook, given the number of examples you've posted about that are broken. You should probably first try emailing the author of that book regarding these problems. I believe you're looking for a shared_mutex.
Brian
The code is wrong, and we cannot divine the original author's intent. I suggest you contact the author regarding their broken code.
Brian _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

________________________________ From: Eric Lin
To: boost-users@lists.boost.org Sent: Thursday, August 4, 2011 5:29 PM Subject: Re: [Boost-users] is boost 1.46.1 contain thread/read_write_mutex.hpp Dear boost programers: http://examples.oreilly.com/9780596007614/ 12-3.cpp is the program I am talking about. although I will try to contact authors(4 D.Ryan Stephens Christopher Diggins Jonathan Turkanis Jeff Cogswell , and I can only find email of second one, and I emailed him but never get him reply) hope boost experts/programers take care on this problem a little bit more deeper and like to see your post again to make this problem be fixed someway. Eric
Looking at the SVN logs, read_write_mutex.hpp was removed from Boost on 5 Oct 2007 (revision 39693.) The only release I can find on SourceForge that contains this file is 1.34 Beta (http://sourceforge.net/projects/boost/files/boost/1.34.0%20Beta/). My guess would be to compile your code against that release. According to a comment on revision 39891, "read_write_mutex makes a comeback --- as shared_mutex."
Date: Thu, 4 Aug 2011 12:11:02 -0700 From: brian.budge@gmail.com To: boost-users@lists.boost.org Subject: Re: [Boost-users] is boost 1.46.1 contain thread/read_write_mutex.hpp
On Thu, Aug 4, 2011 at 11:52 AM, Eric Lin
wrote: Dear boost experts:
so I follow your suggestion, add #include < #include
--- but I still get compile error about root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp Example12-3.cpp:41:4: error: ‘read_wirte_mutex’ in namespace ‘boost’ does not name a type ------------ about the program segment on ----- private: std::list<T> list_; boost::read_wirte_mutex rwMutex_; }; ----------- do you (or any boost expert) know/suggest what kind function(subroutine) I can use to substitute it in share_mutex.hpp, so it still not deviate book author's main intent of the program? need your help and thanks a lot in advance, Eric ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ----------------------------------------
Date: Thu, 4 Aug 2011 08:30:50 -0700 From: brian.budge@gmail.com To: boost-users@lists.boost.org Subject: Re: [Boost-users] is boost 1.46.1 contain thread/read_write_mutex.hpp
On Wed, Aug 3, 2011 at 6:15 PM, Eric Lin
wrote: dear boost progamers:
when I tried to compile from my g++4.5.2 a simple file which include #include
------- root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp Example12-3.cpp:3:45: fatal error: boost/thread/read_write_mutex.hpp: No such file or directory compilation terminated. --------- and I check from / of my ubuntuLinux with boost 1.46.1 I can not find any file name as read_wirte_mutex.hpp --------- root@eric-laptop:/# find . | grep read_write_mutex.hpp root@eric-laptop:/# It won't compile because that file does not exist. It sounds like you should get a new cppcookbook, given the number of examples you've posted about that are broken. You should probably first try emailing the author of that book regarding these problems. I believe you're looking for a shared_mutex.
Brian
The code is wrong, and we cannot divine the original author's intent. I suggest you contact the author regarding their broken code.
Brian _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

AMDG On 08/03/2011 06:15 PM, Eric Lin wrote:
dear boost progamers:
when I tried to compile from my g++4.5.2 a simple file which include #include
------- root@eric-laptop:/home/eric/cppcookbook/ch12# g++ -lboost_thread Example12-3.cpp Example12-3.cpp:3:45: fatal error: boost/thread/read_write_mutex.hpp: No such file or directory compilation terminated. --------- and I check from / of my ubuntuLinux with boost 1.46.1 I can not find any file name as read_wirte_mutex.hpp --------- root@eric-laptop:/# find . | grep read_write_mutex.hpp root@eric-laptop:/# --- and I can not digout from web how to make it compile under gcc/g++
IIRC, read_write_mutex was pulled years ago, because it was broken. The new version is called shared_mutex. In Christ, Steven Watanabe
participants (4)
-
Brian Budge
-
Eric Lin
-
Political Confusion
-
Steven Watanabe