Boost.Interprocess shared_memory.hpp
Hello,
I installed boost-1_35 this morning from cvs, which I believe contains
the interprocess library. I took the interprocess doc from the vault.
In the doc, there is at the end of the chapter "Shared Memory" a "Simple
Example" that I am unable to compile because it contains the line:
#include
Hi, Jean-Christophe Roux wrote:
Hello,
I installed boost-1_35 this morning from cvs, which I believe contains the interprocess library. I took the interprocess doc from the vault. In the doc, there is at the end of the chapter "Shared Memory" a "Simple Example" that I am unable to compile because it contains the line:
#include
but that file does not exist in my boost-1_35 folder. In /usr/local/include/boost-1_35/boost/interprocess, I have managed_shared_memory.hpp shared_memory_object.hpp but no shared_memory.hpp Maybe I am missing something obvious... Maybe the library from 1_35 and the docs from the vault are not compatible? Thanks for helping me out here.
The vault version is an older version. The latest documentation can be found online here: http://ice.prohosting.com/newfunk/boost/libs/interprocess/ The experimental snapshot from Vault (Interprocess.2006-10-13.zip) should contain this updated documentation.
Jean-Christophe
Regards, Ion
Ion Gaztañaga wrote:
The vault version is an older version. The latest documentation can be found online here:
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/interproc... 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
participants (2)
-
Ion Gaztañaga
-
Jean-Christophe Roux