在 Eclipse 中将 mpifort 设置为编译器

Set mpifort as compiler in Eclipse

我是新手!

我正在 Eclipse 中开发一个 MPI C 项目,因为我必须使用 p3dfft,所以我必须在 Eclipse 中将 mpifort 设置为编译器。

不幸的是,直到现在我还没有得到积极的结果。

Eclipse 控制台简单地打印:

make all 
Building target: p3dfft
Invoking: MacOS X C Linker
/usr/local/bin/mpifort -L/usr/local/lib -L/usr/local/lib -o "p3dfft"  ./src/p3dfft.o   -lmpi -lmpi
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
gfortran in your PATH.

Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
make: *** [p3dfft] Error 1

我被困在这里...我能做什么?有什么建议吗?

谢谢

好的,感谢 Gilles 的帮助,我已经解决了!

我已经开始了一个新项目,在 Project -> Properties -> Fortran Build -> Environment 我已经用 mpifort 和 gfortran 所在的条目 /usr/local/bin 更新了 PATH,一切顺利。