Fortran User's Guide

Linking Mixed Fortran 90 and Fortran 77 Compilations

As a general rule, if any of the object files that make up a program were compiled with f90, then the final link step must be done with f90. Use f77 to produce the executable file only if none of the .o object files were compiled with f90.