greatrenew 发表于 2023-3-3 16:22:20

codeblocks编译问题undefined reference to `_gfortran_st_write'

请问大佬,codeblocks+gfortran编译简单的hello world!示例程序时总是出现如下错误信息,为什么?

||=== Build: Debug in Demo (compiler: GNU Fortran Compiler) ===|
D:\Demo\chap02\hello.f90|3|undefined reference to `_gfortran_st_write'|
D:\Demo\chap02\hello.f90|3|undefined reference to `_gfortran_transfer_character_write'|
D:\Demo\chap02\hello.f90|3|undefined reference to `_gfortran_st_write_done'|
D:\Demo\chap02\hello.f90|4|undefined reference to `_gfortran_stop_string'|
D:\Demo\chap02\hello.f90|5|undefined reference to `_gfortran_set_args'|
D:\Demo\chap02\hello.f90|5|undefined reference to `_gfortran_set_options'|
||=== Build failed: 6 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Transpose 发表于 2023-3-3 18:31:17

【Fortran编译器及相关软件安装操作】 【精准空降到 05:34】 https://www.bilibili.com/video/BV1oh411o7AT/?share_source=copy_web&t=334 需要配置一下编译器的路径

呆呆小书生 发表于 2023-3-3 21:50:21

编译器没识别
页: [1]
查看完整版本: codeblocks编译问题undefined reference to `_gfortran_st_write'