架构的未定义符号x86_64“_r8_huge_”

时间:2016-01-13 09:45:37

标签: fortran fortran90 fortran77

我有一个.f90文件,我用它编译:

gfortran -c -o objs/mod_interp.o ../extern/mod_interp.f90 -g -fPIC -Imods -I../header_files -Jmods

其余的对象是从F77文件编译的,然后所有内容都链接到:

gfortran -o WIM2d.exec objs/p_WIM2d.o objs/mod_WIM2d_run.o objs/mod_interp.o objs/mod_file_utils.o objs/mod_gridinfo.o objs/mod_wim_init.o objs/mod_common_wim.o objs/mod_wim_prams.o objs/RTparam_outer.o objs/RTparam_fast.o objs/RTparam_hardcoded_v2.o objs/mod_RTparam_utilities.o objs/mod_adv_atten.o objs/mod_advect.o objs/mod_wavesice.o -g -fPIC -Imods -I../header_files

但是我收到以下错误:

Undefined symbols for architecture x86_64:
  "_r8_huge_", referenced from:
      ___mod_interp_MOD_pwl_interp_2d in mod_interp.o
  "_r8vec_bracket5_", referenced from:
      ___mod_interp_MOD_pwl_interp_2d in mod_interp.o
ld: symbol(s) not found for architecture x86_64

我正在使用OSX 10.10开发mac。 有什么建议吗?

0 个答案:

没有答案