带有 fortran 的 Xcode

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1888173/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:59:48  来源:igfitidea点击:

Xcode with fortran

xcodegfortran

提问by nunolourenco

I'm trying to compile some fortran files in Xcode, using a makefile made by me. The problem is that Xcode can't find gfortran compiler. I have it, because if I go to console and try to compile from there it works well.

我正在尝试使用我制作的 makefile 在 Xcode 中编译一些 fortran 文件。问题是 Xcode 找不到 gfortran 编译器。我有它,因为如果我去控制台并尝试从那里编译它运行良好。

Do you know how to add fortran compiler to Xcode.

你知道如何将 fortran 编译器添加到 Xcode 中吗?

Thanks in advance

提前致谢

采纳答案by F'x

You should use the gfortrancompiler (binaries for Mac available here) along with the XCode gfortran plugin, available there.

您应该使用gfortran编译器(适用于Mac二进制文件在这里一起)与XCode的gfortran插件,可以

回答by MVX

The Xcode gfortran plugin does not work with the latest version of Xcode (3.2 I believe).

Xcode gfortran 插件不适用于最新版本的 Xcode(我相信是 3.2)。