问题描述
我已经更新了我的 Mac,当我使用 Makefile 编译任何代码时,我收到此错误:
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
我已经:
- 重新安装了 x-code,
- 更新了 gcc 和 Homebrew
- 已安装 xcode 命令行工具
但这些都不起作用。
这是我用于链接的命令:
await
解决方法
我已经尝试过这些“两个”命令行:
brew reinstall gcc
brew reinstall gfortran
它解决了我的问题。