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

Fortran参数类型不匹配

开源版本GCC 12.3的报错机制更为严格,部分软件(如ambertools)使用该版本GCC编译时出现报错,报错信息如下:

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

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