Compilation Instructions

Firstly, we need to be able to compile tortoise1. This is a simple UNIX program which uses Xlib, so to compile it we need something like:

cc -o tortoise1 tortoise1.c -I/usr/X11R6/include -lX11 -L/usr/X11R6/lib -lm

To break this down into its constituent parts:

The example above is for a RedHat6.0 GNU/Linux system; for other systems you may well find that the Xlib headers and libraries are accessible in standard directories like /usr/include and /usr/lib - in which case, a simple

cc -o tortoise1 tortoise1.c -lX11 -lm

will suffice

If this doesn't work, you can try one of the following:

Once we add Guile functionality to the program, we also need to tell the compiler and linker how to get access to the relevant Guile headers and libraries.

Fortunately, figuring out how to do this is very easy, because Guile comes with a utility to make it easy.