gfortran中的*类型错误 [英] Type * error in 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 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屋!