首页 > 代码库 > MAC OSX 中解决编译“'cc' failed with exit status 1”错误 和clang: error: unknown argument 错误
MAC OSX 中解决编译“'cc' failed with exit status 1”错误 和clang: error: unknown argument 错误
错误例子:
error: command ‘cc‘ failed with exit status 1
clang: error: unknown argument: ‘-multiply_definedsuppress‘ [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
解决方案:
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install zerorpc
http://stackoverflow.com/questions/22697440/cc-failed-with-exit-status-1-error-when-install-python-library
http://bruteforce.gr/bypassing-clang-error-unknown-argument.html
http://kaspermunck.github.io/2014/03/fixing-clang-error/
http://glynjackson.org/weblog/entry/clang-error.html
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。