【问题标题】:Error in gfortran compilation : Undefined symbols for architecture x86_64gfortran 编译中的错误:体系结构 x86_64 的未定义符号
【发布时间】:2012-04-02 18:40:45
【问题描述】:

程序已使用 ifort 成功编译。但是,我不知道为什么在 gfortran 编译中出现以下错误消息。

您能否告诉我如何解决这个问题,如下所示?谢谢!

gfortran main.o 气候.o 天气.o 植被.o 生物地球化学.o 初始.o 湿度.o \ 辐射.o readpars.o 树冠.o 生理学.o 雪.o 土壤.o 公用事业.o \ ctemfire.o 干扰.o 诊断.o io-cfs.o ies-io.o math.o stats.o nag-soil.o \ -m64 -fixed-line-length-132 -I/usr/local/include -L/usr/local/lib -lnetcdff -lnetcdf -o ibis 架构 x86_64 的未定义符号: “_time_”,引用自: main.o 中的 _MAIN__ ld:未找到架构 x86_64 的符号 collect2: ld 返回 1 个退出状态 make: *** [ibis] 错误 1

【问题讨论】:

    标签: architecture undefined x86-64 gfortran


    【解决方案1】:

    我找到了答案。 “时间”函数是 ifort 中的一个内在函数。我已将 gfortran 的“时间”更改为“dtime”。

    迈克尔

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-03
      • 1970-01-01
      • 1970-01-01
      • 2022-06-21
      • 2014-01-03
      • 1970-01-01
      相关资源
      最近更新 更多