Did I miss some package so I can not compile read_write_mutex.hpp in boost?
Dmitry Andreychuk
and.dmitry at gmail.com
Thu Aug 4 08:00:00 UTC 2011
On Thu, Aug 4, 2011 at 5:55 AM, eric <fsshl at att.net> wrote:
> dear boost progamers:
>
>
> when I tried to compile from my g++4.5.2 a simple file which include
> #include <boost/thread/read_write_mutex.hpp>
> -------
> root_at_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 (10.04) with boost 1.46.1
> I can not find any file name as read_wirte_mutex.hpp
> ---------
> root_at_eric-laptop:/# find . | grep read_write_mutex.hpp
> root_at_eric-laptop:/#
>
>
> ---
> and I can not digout from web how to make it compile under gcc/g++
> plz help, Eric
>
Looks like there is no such file in boost 1.46.1. You should use the
same boost version the example was written for or update the example
to compile against 1.46.1.
--
Dmitry Andreychuk
More information about the Ubuntu-devel-discuss
mailing list