【发布时间】:2021-03-31 04:29:50
【问题描述】:
我在我的 cpp 项目的 build 文件夹中,想要编译
make
作为回应,我得到了
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:97:15: fatal error: 'stdlib.h' file not
found
#include_next <stdlib.h>
我也不能在 Clion 中编译。
我尝试使用 xcode-select -p 设置不同的路径,但 sdk 包不再可用。
【问题讨论】:
-
设置
SDKROOT环境变量可能会有所帮助
标签: c++ makefile compiler-errors developer-tools macos-big-sur