我尝试过构建和运行 c++ 文件,但每次尝试都会失败。这是我在终端中编译时的代码
In file included from /usr/local/include/c++/8.3.0/x86_64-cros-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/8.3.0/x86_64-cros-linux-gnu/bits/c++config.h:508,
from /usr/local/include/c++/8.3.0/iostream:38,
from a.cpp:2:
`/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory
`/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory
# 包括 ^~~~~~~~~~~~~ 编译终止。'
答案1
您需要 g++-multilb 包
sudo apt-get install g++-multilib