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.

4

1 回答 1

3

不,没有。使用-ffree-form编译器选项。

于 2015-10-09T07:28:05.983 回答