0

Is there a compiler directive to tell gfortran-gcc compiler that the code is written in free-form? I have code written in a file with '.for' as extension (which is recognized as fixed-form), but the language is f95 free-form.

Adding a flag to the compiler options to force free-form is not possible for my application, hence it needs to be done using directives.

For ifort, the command is:

!DEC$ FREEFORM

For gfortran is should be something like:

!GCC$ DIRECTIVE

I have, unfortunately, not been able to find which command exactly.

1 Answers1

3

No, there is none. Use the -ffree-form compiler option.

Vladimir F
  • 50,383
  • 4
  • 60
  • 96