If you looking at this document on the web you can get the examples from the Shared Memory Arena source distribution at SourceForge Downloads. Download the latest, shm_arena-x.x.x.tar.bz2, tar file and un-tar it, thus creating a source directory. The examples will be in doc/examples/ in the untared source directory.
There may be many ways to install it and the examples code with your OS distribution package manager. You can get the source to Shared Memory Arena and build and install it. It uses the standard GNU Autotools (./configure && make && make install) to build and install from the source.
Compile the code for this tutorial by running make (GNU make) in the examples/tutorial/ directory:
This should build many example programs.
You may need to set the environment variable PKG_CONFIG_PATH to the directory where the pkg-config file shm_arena.pc is installed. Like /usr/local/lib/pkgconfig or wherever you installed it.bash shell
setenv PKG_CONFIG_PATH /usr/local/lib/pkgconfig/OR_WHEREVER