# Tf

Tells the compiler to compile the file as a Fortran source file.

## Syntax

Linux: | -Tf filename

macOS: | -Tf filename

Windows: | /Tf filename

## Arguments

filename | Is the name of the file.

## Default

OFF | Files that do not end in standard Fortran file extensions are not compiled as Fortran files.

## Description

This option tells the compiler to compile the file as a Fortran source file.

This option is useful when you have a Fortran file with a nonstandard file extension (that is, not one of .F, .FOR, or .F90).

This option assumes the file specified uses fixed source form. If the file uses free source form, you must also specify option free.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Miscellaneous Options

## See Also

extfor compiler option
free compiler option