OS X 优胜美地 gcc 无法识别的命令行选项 'mdll' 后brew 安装 gcc
OS X Yosemite gcc unrecognized command line option 'mdll' after brew install gcc
我使用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.
根据gcc(1)
手册:
-mdll
This option is available for Cygwin and MinGW targets. It
specifies that a DLL---a dynamic link library---is to be generated,
enabling the selection of the required runtime startup object and
entry point.
由于OS X既不是Cygwin也不是MinGW,所以可以放心地假设没有版本的GCC会在OS X上启用它。
如果您试图构建一个动态链接的对象(UNIX术语中的"共享对象"),请查看-dynamic
/-dynamiclib
标志。它们似乎是OS x上的大致等价物。
相关文章:
- NodeJS:node-gyp 编译与等效的 gcc -lm 选项
- 交叉编译:特殊的交叉编译器还是只是带有选项 -march 的 gcc?
- GCC 的 -Wpsabi 选项究竟有什么作用?压制它意味着什么?
- 如何使用 GCC 编译指示启用选项 '-Werror'?
- clang的"-Ofast"选项在实践中有什么作用,特别是对于与gcc的任何差异?
- GCC-7:错误:无法识别的命令行选项"-M64"
- 整个项目的GCC选项摘要-ftime-报告
- STD :: ASYNC带有GCC 7.2需要Pthread Link选项
- 带有调试选项的 GCC 编译阶段
- 是否有GCC选项来警告编写"this-field"而不是"this->field"?
- gcc:错误:在 MacOSX 上构建 openjdk9 时'-mstack-alignment=16'无法识别的命令行选项
- 为什么在不同的计算机体系结构上,相同的GCC的编译选项会有所不同
- NetBeans 8.0 中的 GCC 选项
- rddynamic gcc选项的影响/缺点
- 是否有用于打印源文件直接包含的标题的 GCC 选项
- GCC选项:警告没有返回语句的非void函数
- 什么时候应该在Makefile中使用-c或-o GCC选项?
- GCC '-g' 选项有什么作用?
- 什么是微软等效的GCC选项init_priority
- 由于 gcc -M 选项,覆盖性扫描会跳过所有命令,并且不扫描任何内容