Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Eclipse中将路径设置为`gfortran`?_Eclipse_Fortran_Gfortran - Fatal编程技术网

如何在Eclipse中将路径设置为`gfortran`?

如何在Eclipse中将路径设置为`gfortran`?,eclipse,fortran,gfortran,Eclipse,Fortran,Gfortran,一位同事买了一台新的mac电脑,他用Eclipse和gfortran编写代码。和生成文件。但现在他无法建造 我认为Eclipse没有使用与shell相同的路径,因此尽管Eclipse很乐意使用makefile进行构建,但它找不到gfortran。(从mac终端运行时,Makefile工作正常。) 如果我将完整路径放入Makefile(FC=/usr/local/bin/gfortran),Eclipse就可以构建。但是,当其他人使用Ubuntu时,如果gfortran有不同的路径,这就更麻烦了

一位同事买了一台新的mac电脑,他用Eclipse和gfortran编写代码。和生成文件。但现在他无法建造

我认为Eclipse没有使用与shell相同的路径,因此尽管Eclipse很乐意使用makefile进行构建,但它找不到
gfortran
。(从mac终端运行时,Makefile工作正常。)

如果我将完整路径放入Makefile(
FC=/usr/local/bin/gfortran
),Eclipse就可以构建。但是,当其他人使用Ubuntu时,如果
gfortran
有不同的路径,这就更麻烦了


问题:如何/在何处配置Eclipse(Juno),以便它可以找到
gfortran
?(我找不到,我试过了。)

为什么不直接使用Photran呢。它基于Eclipse,是为Fortran设置的