g95 compiler error

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Mon Jul 11 22:30:00 GMT 2005


Bowyer, Clifton C wrote:
> I compiled a .mod file using the following command .......
> 
> g95 -ffree-form apm_mod.f90
> 
> This seemed to work fine and it created a apm_mod.mod file.

This will give you an error unless there's a main program in that source file.

> g95 -ffree-form -r8 apmsubs.f90

You might want to give either

gfortran apm_mod.f90 apmsubs.f90

or

gfortran -c apm_mod.f90
gfortran -c apmsubs.f90
gfortran apm_mod.o apmsubs.o

in order to properly compile and link.  Please refer to teh manual for specifics.

Please note that g95 and gfortran are different projects (unfortunately, I may
add, some people are very difficult).

Thanks,
- Tobias Schlüter



More information about the Fortran mailing list