我正在构建可重定向反编译器(简称RetDec),遇到了以下错误:
In file included from /usr/local/include/c++/8.2.0/ext/string_conversions.h:41,
from /usr/local/include/c++/8.2.0/bits/basic_string.h:6391,
from /usr/local/include/c++/8.2.0/string:52,
from /usr/local/include/c++/8.2.0/stdexcept:39,
from /usr/local/include/c++/8.2.0/array:39,
from /usr/local/include/c++/8.2.0/tuple:39,
from /usr/local/include/c++/8.2.0/bits/unique_ptr.h:37,
from /usr/local/include/c++/8.2.0/memory:80,
from /home/chronos/user/Downloads/git/retdec/build/external/src/yaramod-project/include/yaramod/builder/yara_expression_builder.h:9,
from /home/chronos/user/Downloads/git/retdec/build/external/src/yaramod-project/src/builder/yara_expression_builder.cpp:7:
/usr/local/include/c++/8.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
compilation terminated.
make[5]: *** [src/CMakeFiles/yaramod.dir/build.make:74: src/CMakeFiles/yaramod.dir/builder/yara_expression_builder.cpp.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:109: src/CMakeFiles/yaramod.dir/all] Error 2
make[3]: *** [Makefile:130: all] Error 2
我之前遇到过这个错误并解决了它,但是我无法确切地记得我是如何解决的。
怎么修复这个问题?
我看到这个问题:编译OpenCV时出错,致命错误:stdlib.h:没有那个文件或目录
那里的答案对我没有帮助。