这是我的错误:
root@:lab1# g++ lab1.cpp
In file included from /usr/include/c++/5/bits/char_traits.h:39:0,
from /usr/include/c++/5/ios:40,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from lab1.cpp:1:
/usr/include/c++/5/bits/stl_algobase.h:62:29: fatal error: ext/type_traits.h: No such file or directory
compilation terminated.
/usr/include/c++/5/ext
是空的:
我猜测这个错误是由于该文件夹中缺少文件引起的,但我不确定。也许有人知道如何重新下载 c++ 头文件?
任何帮助将非常感激!