2009-06-21 32 views
4

gfortranからifort(Intel Fortranコンパイラ11)にプログラムを移植しようとしています。gfortranからifortへの移植中にコンパイルエラーが発生する

ifort -fpp -c daedrid.ff 
ifort: warning #10147: no action performed for specified file(s) 
ifort -fpp -c daedris.ff 
ifort: warning #10147: no action performed for specified file(s) 

と何のオブジェクト・ファイルが作成されません:私が得る、私はこれらのファイルをインテルFortranコンパイラを実行しようとすると、

gfortran -x f77 -c daedrid.ff 
gfortran -x f77-cpp-input -c daedris.ff 

:私だけのgfortranでコンパイルする二つのファイルとこだわっています。

今、この問題をどのように解決できますか?

EDIT: FFからFPPへのファイルの拡張子の名前を変更

cp daedrid.ff daedrid.fpp 
cp daedrid.ff daedrid.fpp 

役立ちます:

ifort -fpp -c daedrid.fpp 
daedrid.fpp(1483): (col. 9) remark: LOOP WAS VECTORIZED. 
daedrid.fpp(1490): (col. 11) remark: LOOP WAS VECTORIZED. 
daedrid.fpp(1499): (col. 13) remark: LOOP WAS VECTORIZED. 
ifort -fpp -c daedris.fpp 
daedris.fpp(1626): (col. 9) remark: LOOP WAS VECTORIZED. 

http://www.rcac.purdue.edu/userinfo/resources/black/userguide.cfm#compile_fortran_cpp

UPDATE:をインテルFortranのを作るための方法はありますファイルの名前を変更せずにコンパイラの作業?あなたが探している

答えて

5

オプションは-Tf-fpp(および必要に応じて-fixedまたは-freeあるifort -helpから、関連する行は以下の通りです。だから、

-Tf<file>  compile file as Fortran source 

-fpp[n] run Fortran preprocessor on source files prior to compilation 
    n=0 disable running the preprocessor, equivalent to no fpp 
    n=1,2,3 run preprocessor 

-[no]fixed,-FI specifies source files are in fixed format 
-[no]free, -FR specifies source files are in free format 

、すべてのすべて、あなたがしている場合は、固定形式のソース前処理を必要とする、あなたが使用します。

ifort -fpp -fixed -Tfa.ff 

はファイルa.ffをコンパイルする

関連する問題