Boost logo

Boost Users :

From: Jean-Christophe Roux (jcxxr_at_[hidden])
Date: 2007-03-17 17:39:18


Ion Gaztañaga wrote:
> The vault version is an older version. The latest documentation can be
> found online here:
>
> http://ice.prohosting.com/newfunk/boost/libs/interprocess/
>

Hello Ion.

Thanks for your answer but I am still struggling with the basic
examples. I compiled the example at
http://ice.prohosting.com/newfunk/boost/libs/interprocess/doc/html/interprocess/sharedmemory.html#interprocess.sharedmemory.shared_memory_a_simple_example

1.
The "server" compiles fine but when I run the exec, I am getting the error:
"Function not implemented"
What could be the problem? I am running on Fedora Core 4

2.
The "client" does not compile with the errors:
": In function 'int main()':
main.cpp:17: error: variable 'boost::interprocess::mapped_region region'
has initializer but incomplete type"

in the code this is the second line of:
       mapped_region region
          (shm //What to map
          ,read_only //Map it as read-only
          );

3.
"main.cpp:26: error: 'size' was not declared in this scope"
in the code, this is:
       for(std::size_t i = 0; i < size; ++i){
adding
   std::size_t size = region.get_size();
would probably solve the line 26:error.

Regards,
Jean-Christophe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net