Fortran Coder

标题: fortran错误The attributes of this name conflict with those made accessible ... [打印本页]

作者: 巴拉巴拉不    时间: 2016-5-16 14:26
标题: fortran错误The attributes of this name conflict with those made accessible ...
[Fortran] 纯文本查看 复制代码
MODULE COMNP
USE COMPAR
COMPLEX CFFS(NP)
COMMON /STRDIS/ CFF,CFFS
END MODULE COMNP

SUBROUTINE GETSLN(IL,NSLOW)
USE COMPAR
USE COMNP
DIMENSION X(NP2,3)
equivalence (X(1,1),CFF(1,1))
……


运行到equivalence那一步就出现错误:Error: The attributes of this name conflict with those made accessible by a USE statement.   [CFF]
      equivalence (X(1,1),CFF(1,1))
请问,这是因为什么啊??

作者: 楚香饭    时间: 2016-5-17 09:30
为什么要同时使用 module 和 common 呢?直接放弃 common 就好了




欢迎光临 Fortran Coder (http://bbs.fcode.cn/) Powered by Discuz! X3.2