g77 and gfortran

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Sat Aug 18 19:06:00 GMT 2007


Granville Sewell wrote:
> Can g77 and gfortran-generated object codes be mixed?

Yes and no.  As long as all I/O and the main program is contained in 
gfortran-compiled code, and as long as you use gfortran for the linking 
stage, everything should work.  In some corner cases you may need to 
provide the -ff2c flag, and perhaps the -fsecond-underscore flag.

Every other combination will probably fail.

Cheers,
- Tobi



More information about the Fortran mailing list