
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