C style preprocessor directives in Fortran90 using pgf90

Hi All,

I have no idea which switch I have to use in order to compile code as shown below. I need a pgf90 equivalent to intel’s

-fpp -DSELFE

#IFDEF SELFE
use elfe_glbl, only : MNE => nea
#ENDIF SELFE

If I use pgf90 the result is as follow also using -DSELFE

pgf90 -c -DSELFE datapl.f90
PGF90-S-0021-Label field of continuation line is not blank (datapl.f90: 9)
PGF90-S-0021-Label field of continuation line is not blank (datapl.f90: 31)
PGF90-F-0004-Unable to open MODULE file elfe_glbl.mod (datapl.f90: 10)
PGF90/x86-64 Linux 10.3-0: compilation aborted

thanks for any suggestions

Hi surfjunky,

“-Mpreprocess” or change your suffix to “.F90”.

  • Mat