---
title: Line truncated
description: "编译报错："
url: https://www.hikunpeng.com/document/detail/zh/kunpenggrf/codeprtr/kunpengtaishanporting_12_0110.html
sourcePath: /source/zh/kunpenggrf/codeprtr/kunpengtaishanporting_12_0110.html
indexId: 05b6a5e195492bec92a98bf14b9850810ed012641d3cebb08869d22ec4c5345465
---
# 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，自由格式无行数限制。
