巴拉巴拉不 发表于 2016-5-16 14:26:04

fortran错误The attributes of this name conflict with those made accessible ...

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.   
      equivalence (X(1,1),CFF(1,1))
请问,这是因为什么啊??

楚香饭 发表于 2016-5-17 09:30:56

为什么要同时使用 module 和 common 呢?直接放弃 common 就好了
页: [1]
查看完整版本: fortran错误The attributes of this name conflict with those made accessible ...