mac上x86_64架构的未定义符号

时间:2014-12-11 09:24:21

标签: macos fortran x86-64 fftw

我正在尝试编译使用FFTW库的代码。我已经安装了这些并使用lipo检查了它们是否已安装用于x86_64架构。但是,当我尝试编译时,我收到以下错误

mpif90 -r8 -O3 -assume byterecl -u -I/usr/local/mpich2/include -I/usr/local/fftw_215_mpich2/include -L/usr/local/fftw_215_mpich2/lib -I./OBJ/ ./SRC/tt_main.f90  ./OBJ/xx_exter.o ./OBJ/tt_fft.o ./OBJ/tt_force.o ./OBJ/tt_init.o ./OBJ/tt_io.o ./OBJ/tt_les.o  ./OBJ/tt_update.o ./OBJ/tt_stat.o ./OBJ/tt_mod.o ./OBJ/xx_mod.o  -o turbo  -ldfftw -ldrfftw -ldfftw_mpi -ldrfftw_mpi -lm
Undefined symbols for architecture x86_64:
  "_rfftwnd_f77_mpi_", referenced from:
      _fft3ds_ in tt_fft.o
      _ifft3ds_ in tt_fft.o
  "_rfftwnd_f77_mpi_create_plan_", referenced from:
      _init_fft3d_ in tt_fft.o
  "_rfftwnd_f77_mpi_local_sizes_", referenced from:
      _init_fft3d_ in tt_fft.o
ld: symbol(s) not found for architecture x86_64
make[1]: *** [turb] Error 1
make: *** [turbo] Error 2

有人可以帮忙吗?

0 个答案:

没有答案