The program is compiling and running in my friends system correctly but when I am trying to execute on my system it is showing the above error at the following line.
message_queue::size_type recvd_size;
I am also included the namespace
using namespace boost::interprocess;
I have installed the latest boost library, using sudo apt-get install libboost-all-dev but again the compiler is showing error message as
error: ‘size_type’ is not a member of ‘boost::interprocess::message_queue’