gfortran中的*类型错误 [英] Type * error in gfortran

查看:64
本文介绍了gfortran中的*类型错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行代码时,对于具有以下格式的所有语句,都会收到以下错误.类型语句有问题吗?如果是,请给我一个解决方案.我在Ubuntu 14.10系统上运行代码.该程序很长,因此我现在不发布它,但是如果需要的话,我一定可以发送它.

When I run my code I get the following error for all the statements that have the following format. Is there any problem with the type statement? If yes kindly provide me with a solution. I running my code on a Ubuntu 14.10 system. The program is very long hence I am not posting it now however if required I can surely send it.

recfunk_ascii.f:622.12:

recfunk_ascii.f:622.12:

  type *,'enter back-azimuth limits ib1,ib2 (integers!)'            
        1
Error: Invalid character in name at (1)

推荐答案

Type是一种过时且完全非标准的声明(请参见

Type is an obsolete and completely non-standard statement (see http://docs.oracle.com/cd/E19957-01/805-4939/6j4m0vnbi/index.html). It is not portable because many compilers do not recognize it. It should be changed to a PRINT statement, as @francescalus suggest in the comment.

print *,'enter back-azimuth limits ib1,ib2 (integers!)'

这篇关于gfortran中的*类型错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆