【发布时间】:2017-06-11 20:19:53
【问题描述】:
我正在尝试从源代码编译 pynifti 包(涉及 Anaconda Python 发行版的长篇故事)。
运行make后,我收到以下错误:
gcc: error: unrecognized command line option ‘--Wl,--no-undefined’
确实,手册 (man gcc) 没有包含有关 --no-undefined 开关的信息。我的gcc 版本是4.8.5。另外,我在https://gcc.gnu.org/onlinedocs/gcc/Option-Index.html#Option-Index 中找不到no-undefined 选项
但是,从Force GCC to notify about undefined references in shared libraries 我推断它至少对于某些版本的gcc 来说是一个有效的开关。
【问题讨论】:
-
执行:s/--Wl/-Wl/
-
谢谢,它正在工作;我讨厌修复第三方代码