gfortran

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Tue Sep 22 21:11:00 GMT 2009


Hi,

Creekmore Torreon N Dr NGA-IBR USA CIV wrote:
> I would like to know if the gfortran complier will work with fortran 90
> programs on Linux. When I try to compile I get several errors (many have
> to do with "c" to comment out a line) for my fortran 90 programs. The
> command I use is: gfortran program1.f program2.f.
> 
> Does gfortran support Fortran 90 programs?

Yes.  Unfortunately, your problem description is a bit unspecific.  My 
guess is that you're source files are free-form source files despite 
their .f exension.  gfortran tries to guess the source-form you're using 
from the file extension: .f for fixed form, .f90, .f95, .f03 for free 
form.  If you don't want to rename your files to follow that convention 
and that is indeed the problem you can use the -ffree-form command line 
option.

If that's not the problem, you may want to try to give some more 
details, like, say, the error messages that you're getting.

Cheers,
- Tobi



More information about the Fortran mailing list