Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


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

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.