next up previous contents index
Next: Using Variables Up: The Library Version Previous: Linking on VMS

Linking on UNIX

On Unix system, the location of the GAG software environment is normally defined by the $GAG_ROOT environment variable. If not, ask your system manager to add the definition of $GAG_ROOT in a system-wide ``login'' script.

Several libraries are needed to run the SIC system. Libraries may be shareable or simple archive: the operating system will normally decided which one to use. All libraries are in the directory $GAG_ROOT/lib. The link command should look like (e.g. for Fortran program on HP-UX systems):

fort77 -L$GAG_ROOT/lib -o prog prog.o -lsic -limage -lgag -lrary
Other compilers (such as cc, the C compiler) will have similar options, but note however that the Fortran libraries will be needed in the link. Beware that the order of the libraries is significant. For systems not supporting the -L option, you will have to explicitly mention the full names of the libraries.



Gildas manager
2002-06-07