Tuesday, August 30, 2016

boost shared_memory_object

shm_open is in librt. So compile the program as

 g++ -o test test.cpp -lrt   


Note that "-lrt" needs to be put after -o.

No comments: