微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

编译 FARGO-ADSG

如何解决编译 FARGO-ADSG

我一直在尝试对 FARGO-ADSG 程序进行第一次编译,但是当我使用顺序构建运行 make 命令时,我不断收到相同的错误

cc LowTasks.c -c -O 
In file included from mp.h:29,from LowTasks.c:1:
sg.h:21:1: error: unkNown type name ‘rfftw_plan’; did you mean ‘rfftwnd_mpi_plan’?
   21 | rfftw_plan SGP_fft1dplan_forward;
      | ^~~~~~~~~~
      | rfftwnd_mpi_plan
sg.h:22:1: error: unkNown type name ‘rfftw_plan’; did you mean ‘rfftwnd_mpi_plan’?
   22 | rfftw_plan SGP_fft1dplan_backward;
      | ^~~~~~~~~~
      | rfftwnd_mpi_plan
In file included from mp.h:25,from LowTasks.c:1:
fftw_dummy.h:9:19: error: expected identifier or ‘(’ before numeric constant
    9 | #define fftw_real 2
      |                   ^
sg.h:25:1: note: in expansion of macro ‘fftw_real’
   25 | fftw_real *SGP_Sr,*SGP_St;
      | ^~~~~~~~~
fftw_dummy.h:9:19: error: expected identifier or ‘(’ before numeric constant
    9 | #define fftw_real 2
      |                   ^
sg.h:26:1: note: in expansion of macro ‘fftw_real’
   26 | fftw_real *SGP_Kr,*SGP_Kt;
      | ^~~~~~~~~
fftw_dummy.h:10:22: error: expected identifier or ‘(’ before numeric constant
   10 | #define fftw_complex 3
      |                      ^
sg.h:27:1: note: in expansion of macro ‘fftw_complex’
   27 | fftw_complex *SGP_Accr,*SGP_Acct;
      | ^~~~~~~~~~~~
LowTasks.c: In function ‘DumpSources’:
LowTasks.c:127:3: warning: ignoring return value of ‘system’,declared with attribute warn_unused_result [-Wunused-result]
  127 |   system (CommandLine);
      |   ^~~~~~~~~~~~~~~~~~~~
make: *** [makefile:237: LowTasks.o] Error 1

我安装了最新版本的 mpi 以及所需的 fftw 2.1.5。对于 FARGO-ADSG。在我的 .bashrc 文件中,我还为 FARGO-ADSG 添加了 mpi 和 fftw 的路径以供查找

export FFTW_PREFIX='path/to/fftw'
export MPI_PREFIX='path/to/mpi'

在这一点上,我有点不知该如何解决这个问题。非常感谢任何帮助!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。