Linking FORTRAN Routines with C
When compiling and linking a C program which contains calls
to one or more FORTRAN routines, additional library arguments
must be added to the compile command to enable FORTRAN
internal routines to be linked. Each Athena workstation type has a
different FORTRAN compiler, with different FORTRAN
libraries required. Here is a list of the correct libraries by
machine type:
Machine type library arguments
IBM rs6000 -lxlf
DEC -lfor -li -lutil -lots
SUN -lF77 -lM77 -lV77 -lm -lc (You may also need -lsunmath)
SGI -lI77 -lF77 -lisam (not always necessary)
last updated: 11/28/96