我试图使用 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
Run Code Online (Sandbox Code Playgroud)
我发现了一些这样的问题,但问题是我的 Mac 上没有 Xcode,而且我已经多次更新了我的命令行工具,但它没有用。顺便说一下,我使用的是 OSX 10.14.6。