Building xrel on your system

On most systems, building xrel should be as easy as this:

cc -O xrel.c -lXt -lX11 -lm -o xrel

These are command lines I've used to build xrel on specific operating systems:

gcc -O2 -fomit-frame-pointer -I/usr/X11R6/include xrel.c -L/usr/X11R6/lib -lXt -lX11 -lm -o xrel
Digital UNIX 4.0
cc -fast xrel.c -lXt -lX11 -lm -o xrel
Solaris 2.5
gcc -O2 -fschedule-insns xrel.c -lXt -lX11 -lsocket -lm -o xrel

If you succeed in building it, then you'll want to know how to run xrel.

On the other hand, if you have problems building xrel, consult your manuals or your local UNIX/X guru. If you encounter particular problems with compiling it, or even (gasp) bugs in my code, mail me with how you resolved the problem or information about the bugs you found. I'll be happy to add specific compiling instructions for other operating systems to the list above. If a bug is bad enough to cause a core dump, please try to get me a stack traceback and the values of the local variables in the function where xrel died. Do not send me the core dump file, because I won't be able to do anything with it.

Return to Relativistic Starflight

Steve VanDevender
Last modified: Wed Feb 23 15:03:02 PST 2000