This program should already be in /usr/bin/X11 on UNIX−based systems that have X11 Release 4 or Release 5
installed. You also need the configuration files for imake; they are in /usr/lib/X11/config on most UNIX−based
systems. An Imakefile is a system−independent makefile that is used by imake to generate a Makefile. This process is
necessary because it is impossible to write a Makefile that works on all systems. You invoke imake using the xmkmf
program. Complete instructions for compiling the examples using imake are provided in the README file included
with the source code.
As explained in the Preface, there are versions of the example programs for both Motif 1.2 and Motif 1.1 available
electronically. However, all of the example code in this book is designed to work with Motif 1.2 (and X11R5); the
programs use functions that are not available in Motif 1.1 (and X11R4). Where we use Motif 1.2 functions, we try to
mention how to perform the same tasks using Motif 1.1, usually in a footnote. To use the example programs with
Motif 1.1, make the changes we describe. When the necessary changes are significant, we may explain both versions
of the program. For a description of the changes that we made to convert the example programs to Motif 1.2, see
Section #smotif12.
To compile any of the examples on a UNIX system without using imake, use the following command line:
cc −O −o filename filename.c −lXm −lXt −lX11
If you want to do debugging, replace −O with −g in this command line. The order of the ...