FORTRAN 编译错误
f77 -c -o alqueva.o alqueva.f
alqueva.f: In program `ssssss':
alqueva.f:402:
DO WHILE (.NOT. EOF(12))
1 2
.NOT. operator at (1) must operate on subexpression of logical type, but the subexpression at (2) is not of logical type
alqueva.f:415:
DO WHILE (.NOT. EOF(iread))
1 2
.NOT. operator at (1) must operate on subexpression of logical type, but the subexpression at (2) is not of logical type
make: *** [alqueva.o] Error 1
f77 -c -o alqueva.o alqueva.f
alqueva.f: In program `ssssss':
alqueva.f:402:
DO WHILE (.NOT. EOF(12))
1 2
.NOT. operator at (1) must operate on subexpression of logical type, but the subexpression at (2) is not of logical type
alqueva.f:415:
DO WHILE (.NOT. EOF(iread))
1 2
.NOT. operator at (1) must operate on subexpression of logical type, but the subexpression at (2) is not of logical type
make: *** [alqueva.o] Error 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经有一段时间没有做很多 fortran 工作了,但我不相信 EOF 函数是 fortran 77 标准的一部分,而且我总是使用 end=label 习惯用法
(但可能使用 < code>do 而不是
goto
...)这是讨论几个选项的页面,包括上述选项和基于
iostat
的选项It's been a while since I did much fortran, but I don't believe that the
EOF
function is part of the standard for fortran 77, and I always used the end=label idiom(but possibly using
do
instead ofgoto
...)Here is page which discusses several options including the above and one based on
iostat