开发者

FORTRAN COMPILING ERROR

f77    -c -o alqueva.o alqueva开发者_Python百科.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


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

10 read (blah,end=20)
   process stuff
   goto 10
20 close (blah) 

(but possibly using do instead of goto...)

Here is page which discusses several options including the above and one based on iostat

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜