LF Fortran 95

-[N]FIX

Fixed Source Form

Compile only. Default: -nfix for .f90 and .f95 files; -fix for .for and .f files

Specify -fix to instruct the compiler to interpret source files as Fortran 90 fixed source form regardless of the file extension. -nfix instructs the compiler to interpret source files as Fortran 90 free source form regardless of the file extension.

Example

LF95 @bob.rsp bill.f90

If the command file BOB.RSP contains -fix, BILL.F90 will be interpreted as fixed source form even though it has the free source form extension .F90.

LF95 assumes a default file extension of .f90. Specifying -fix causes LF95 to assume a default file extension of .for.

All source files compiled at the same time must be fixed or free. LF95 doesn't compile files (including INCLUDE files) that mix both fixed and free source form.

Visual Studio Property

The -fix option is set using the Fortran|Behavior|Source Format property. The property can be set on the property page for the project or source file.

See Also

Setting Build Options