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。
父主题: 兼容性问题