【发布时间】:2016-02-03 04:33:49
【问题描述】:
我在 MacOSX El Capitan 上使用 GCC 编译时遇到了这个问题。我已经重新安装了 Homebrew 和 GCC,但我仍然无法编译最简单的程序。我不知道这里到底发生了什么:
Koplo$ gcc test.c -o test
ld: library not found for -lgcc
collect2: error: ld returned 1 exit status
【问题讨论】:
标签: c xcode gcc homebrew osx-elcapitan