鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

Line truncated

问题描述

编译报错:

Projection_modul.f90:305:132:
  305 | 83  format(‘ABORT: when calling proj_latlon_module subroutine “projinfo” , you must specify both dx and dy or neither’,/,’ dx present?’,I0,/,; dy present?’,I0)
     |                                                           1
Error: Line truncated at (1) [-Werror=line-truncation]

问题原因

GFortran语法规则有限制,自由格式下不允许每行超过132字符的长度,但是不同编译器针对该限制也会有差异。

处理步骤

使用续行字符进行换行,或者增加编译选项-ffree-line-length-none,自由格式无行数限制。