主题:Fortran中的include怎么用啊
各位朋友,我的程序编译后出现如下错误:
Error: Syntax error, found IDENTIFIER 'TMCOMMON' when expecting one of: <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT>
INCLUDE TMCOMMON.FOR
我明明已经将TMCOMMON.FOR加入到工程中了,道理是哪里不对啊?下面是代码:
INCLUDE TMCOMMON.FOR
CHARACTER*15 INPUTS$,SUBCAT$,PARAMS$,OUTPUT$
OPEN(4,FILE="TOPMOD.RUN",STATUS="OLD")
READ(4,"(A)")TITLE
READ(4,"(A)")INPUTS$
READ(4,"(A)")SUBCAT$
READ(4,"(A)")PARAMS$
READ(4,"(A)")OUTPUT$
。。。
求指教!
谢谢!
Error: Syntax error, found IDENTIFIER 'TMCOMMON' when expecting one of: <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT>
INCLUDE TMCOMMON.FOR
我明明已经将TMCOMMON.FOR加入到工程中了,道理是哪里不对啊?下面是代码:
INCLUDE TMCOMMON.FOR
CHARACTER*15 INPUTS$,SUBCAT$,PARAMS$,OUTPUT$
OPEN(4,FILE="TOPMOD.RUN",STATUS="OLD")
READ(4,"(A)")TITLE
READ(4,"(A)")INPUTS$
READ(4,"(A)")SUBCAT$
READ(4,"(A)")PARAMS$
READ(4,"(A)")OUTPUT$
。。。
求指教!
谢谢!