Compiling the program

In order to compile the program you have to tell it where to find the header files for the simulation and where to find the library. Then you need to link your program to the graph and X11 libraries. Assuming that you use the standard implementation (see A Installing the library), the command will look something like
cc -I ~/include prog2.c -L ~/lib -L /usr/X11R6/lib -lm -lgraph 
-lX11 -o anim2.out
This assumes that you have installed the library in your home directory. For system-wide installations you would not need the special -I /include and -L /lib options. For more explanations see the man pages of your c compiler.



Alexander Wagner 2016-01-14