【发布时间】:2015-05-22 05:39:49
【问题描述】:
我使用 brew 安装了 gcc,因为我需要安装 brew 的 Fortran 包。 brew install gcc安装的gcc包好像不支持mdll标志。如何安装正确版本的 Fortran 和 gcc?
$ which gcc
/usr/local/bin/gcc
$ gcc --version
gcc (GCC) 4.9.2 20141029 (prerelease)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc -mdll
gcc: error: unrecognized command line option ‘-mdll’
gcc: fatal error: no input files
compilation terminated.
【问题讨论】:
-
什么 brew Fortran 包?
gfortran现在只是 gcc 的一部分。 github.com/Homebrew/homebrew/pull/28855 -
是的,我通过 brew gcc 包安装了 gfortran
标签: c++ macos gcc homebrew osx-yosemite