Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29391 Discussions

How to compile file with .f95 extension

reubendb
Beginner
1,707 Views
Is it possible to compile file with .f95 extension ? According to the manual/UG, this extension is not recognized by ifort. Any tricks to do this anyway ? I am trying to compile a codebase that has .f95 extension for some of the files, and I don't really want to rename the files.



I am using Intel Fortran compiler for Linux, version 8.1. This is what I get when compiling file with .f95 extension:



$> ifort -c example.f95

ifort: Command line warning: no action performed for specified file(s).



I already search the manuals and Google but haven't come up with anything.



Thanks for any respond.

RDB
0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,706 Views
ifort -c -Tf source.f95

It is a REALLY bad idea to name source files with varying extensions based on the standard version. .f90 really means "free form source".
0 Kudos
Reply