next up previous contents index
Next: VMS systems Up: Linking Previous: Linking

UNIX systems

To access GreG from your Fortran Program, you need to link to several libraries. All GreG libraries are located in $GAG_ROOT/lib where $GAG_ROOT is an environment variable defining where the GILDAS software is located. See your local GILDAS expert for that.

Then you should use the following link command to link your program

	f77 -o Program Program.f -L/usr/lib/X11 -L$GAG_ROOT/lib \
	-lgdf -lGREG -lcontour -lgtlang -lchar -lsic -limage -lgag -lrary \
	-lX11 -lm -lc

where
	f77              is the Fortran compiler/linker
	Program.f        is your Fortran program.
	/usr/lib/X11     indicates where the X11 libraries are located
	-lm -lc          are required on some systems
On some systems, the GreG libraries are shareable, thus avoiding code to be included in your own programs.



Gildas manager
2002-06-07