Fortran Coder

error #7938: Character length argument mismatch.

查看数: 7790 | 评论数: 1 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2018-6-27 10:30

正文摘要:

如题,之前可以编译,后来重新打开后一直无法编译,求助!

回复

chiangtp 发表于 2018-6-27 13:20:08
https://stackoverflow.com/questi ... as-specified-length

Fortran 2003, 12.4.1.2 Actual arguments associated with dummy data objects:
If a scalar dummy argument is of type default character, the length len of the dummy argument shall be less than or equal to the length of the actual argument. The dummy argument becomes associated with the leftmost len characters of the actual argument.

解決方法之一:
SUBROUTINE WALL( u, text, ...)
  IMPLICIT NONE
  CHARACTER(*), INTENT(IN) :: text

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2024-11-23 21:15

Powered by Tencent X3.4

© 2013-2024 Tencent

快速回复 返回顶部 返回列表