A subdirectory in SVN called "samples" contains the code, by kind permission, from Christina Lau's Object-Orientated programming using SOM and DSOM. ISBN-10: 0471131237
This can be checked out with
svn checkout svn://svn.code.sf.net/p/somfree/code/trunk/samples somfree-code-samples
This contains sample Makefiles for Linux, MacOS and Win32. They assume the somFree toolkit has been installed. You will need a supported C/C++ compiler, ( eg, Microsoft Visual Studio for Win32 ).
For Win32, the suggested way of running the build is
nmake -f makefile.Win32 "SOMBASE=%ProgramFiles%\somtk"
The code was original published in 1995, it has now been released under LGPL 3. You can use the SVN revision to see the differences between the original ( SVN release 9 ) and that updated for modern C++ compilers and portability ( SVN release 10 ).
An online copy of the book is available at:
http://www.edm2.com/index.php/Object-Oriented_Programming_Using_SOM_and_DSOM