---
title: Fortran参数类型不匹配
description: "开源GCC 12.3报错机制会更加严格，有些软件比如ambertools用GCC 12.3版本编译会报错："
url: https://www.hikunpeng.com/document/detail/zh/kunpengdevkithistory/hgcc/hist-hgcc/kunpenghgcc_06_0060.html
sourcePath: /source/zh/kunpengdevkithistory/hgcc/hist-hgcc/kunpenghgcc_06_0060.html
indexId: 8171b4de581a9531f0b78bbefa128279da322ff039761682f261be71d3130ec971
---
# Fortran参数类型不匹配

开源GCC 12.3报错机制会更加严格，有些软件比如ambertools用GCC 12.3版本编译会报错：

Error: Type mismatch between actual argument at (1) and actual argument at (2) (TYPE(c_ptr)/REAL(8)).

解决方案：修改不符合语言标准的代码，或者删除-pedantic-errors选项并添加选项-fallow-argument-mismatch。
