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
SUN -lF77 -lM77 -lV77 -lm -lc (You may also need -lsunmath)
SGI -lI77 -lF77 -lisam (not always necessary)
last updated: 11/16/99
|