【发布时间】:2021-05-01 21:14:45
【问题描述】:
我试图使用 gcc 10.2.8 编译我的代码,但我收到了这个错误:
scons: *** [S.os] Error 1
In file included from /usr/local/Cellar/gcc/10.2.0_2/include/c++/10.2.0/cstdio:42,
from Public_Library/C.h:10,
from Public_Library/D.h:11,
from Public_Library/RS.h:10,
from Projects/S/main.cpp:1:
/usr/local/Cellar/gcc/10.2.0_2/lib/gcc/10/gcc/x86_64-apple-darwin18/10.2.0/include-fixed/stdio.h:219:10: fatal error: _ctermid.h: No such file or directory
我发现了一些这样的问题,但问题是我的 Mac 上没有 Xcode,而且我已经多次更新了我的命令行工具,但它没有工作。 顺便说一句,我使用的是 OSX 10.14.6。
【问题讨论】:
-
是的,那也没用