Re: Preprocessor for gfortran



jellby@xxxxxxxxx wrote:
Hello,

Does anyone know if it's possible to enable the preprocessor with
gfortran and how? With the NAG and Intel compilers I can add -fpp to
the command line, but gfortran doesn't recognize that option. I know I
can rename the files from .f90 to .F90, but I'd like to stick to .f90
and use the command line instead...

Thanks.

Besides using gfortran's own pre-processor (tradcpp), you should be able to use any pre-processor you choose, and pipe its output to gfortran.
.



Relevant Pages

  • Preprocessor for gfortran
    ... With the NAG and Intel compilers I can add -fpp to ... the command line, but gfortran doesn't recognize that option. ... can rename the files from .f90 to .F90, but I'd like to stick to .f90 ...
    (comp.lang.fortran)
  • Re: reading text file, cross-platform
    ... I notice this is f90, ... I take it gfortran will like it? ... Internal reads from a string using list-directed input is officially ... Some f77 compilers seem to accept it as well, ...
    (comp.lang.fortran)
  • Re: Preprocessor for gfortran
    ... the command line, but gfortran doesn't recognize that option. ... can rename the files from .f90 to .F90, but I'd like to stick to .f90 ... to explicitly execute the preprocessor of choice. ...
    (comp.lang.fortran)
  • Re: How to compile Mopac 7.1 using g77 or gfortran
    ... gfortran -c vastkind.f90 ... gfortran -c *.f90 ... del *.mod ... I get segmentation fault. ...
    (comp.lang.fortran)
  • Re: How to compile Mopac 7.1 using g77 or gfortran
    ... It seems that the code is in F90 free format. ... I hope to use g77 or gfortran under Linux platform. ... documentation, even so much as a README file. ...
    (comp.lang.fortran)