How do you link a library file when compiling a fortran program using g77 (GNU). My example, the library file is located in /home/name/program/library.a and the fortran program to be linked is test.f ????? Everything I have tried produced an undefined reference to all the function calls in test.f.