2009-06-21 5 views
4

gfortran에서 ifort (Intel Fortran Compiler 11)로 프로그램을 이식하려고합니다. 나는이 파일을 인텔 포트란 컴파일러를 실행하려고하면 내가 얻을gfortran에서 ifort로 이식 할 때 컴파일 오류가 발생했습니다.

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

:

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) 

어떠한 오브젝트 파일이 생성되지 않습니다 난 단지 gfortran 함께 컴파일이 개 파일이 붙어있어.

이제이 문제를 어떻게 해결할 수 있습니까?

편집 : FPP

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

에 FF에서 파일 확장자 이름 바꾸기 도움 :

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 :는 인텔 포트란을 만들 수있는 방법이 있나요 파일 이름을 바꾸지 않고 컴파일러 작업을 할 수 있습니까? 당신이 찾고있는

답변

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을 컴파일

.