Click to See Complete Forum and Search --> : linking with g77


ncs
January 8th, 2002, 02:06 PM
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.

ncs
January 8th, 2002, 02:06 PM
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.