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

ifort: command line warning #10161?

Hl_Shi
Beginner
2,831 Views

OS: Windows 7 64bit
IDE: visual studio 2008
compiler: w_cprof_p_11.1.065

The code ReadGLA12_v4.0.f95 compiled correctly using G95 compiler and can be compiled by ivf +vs2008. but using IVF compiler in cmd:

ifort /stand:f95 /convert:big_endian ReadGLA12_v4.0.f95 /exe:ReadGLA12_v4.0.exe

Intel Visual Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1 Build 20100414 Package ID: w_cprof_p_11.1.065

Copyright (C) 1985-2010 Intel Corporation. All rights reserved.

ifort: command line warning #10161: unrecognized source type 'ReadGLA12_v4.0.f95'; object file assumed

Microsoft Incremental Linker Version 9.00.30729.01

Copyright (C) Microsoft Corporation. All rights reserved.

-out:ReadGLA12_v4.0.exe

-subsystem:console

ReadGLA12_v4.0.f95

ReadGLA12_v4.0.f95 : fatal error LNK1107: invalid or corrupt file: cannot read at 0xBA39.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
2,830 Views
.f95 is a non-standard file type that is not recognized by the ifort command. Please rename the file to .f90. If you want to use non-standard file types, you can use /source:ReadGLA12_v4.0.f95 to tell the ifort driver that this is a Fortran source file. You will also need to add /free to tell it that it is free-form source.

It is, in my view, a mistake to use the file type to distinguish among Fortran standards revisions. The industry adopted .f90 to mean "free-form source" but many people then assumed it really meant "Fortrtan 90" specifically.
0 Kudos
Reply