gpt4 book ai didi

c++ - 如何从 cstdlib 修复 stdlib.h 的 include_next?

转载 作者:行者123 更新时间:2023-12-02 10:38:46 24 4
gpt4 key购买 nike

我正在构建可重定向反编译器(简称 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

我以前处理过这个错误并且已经解决了它,但是我不记得我到底是怎么做到的。

我该如何解决这个问题?

我看过这个问题:Error compiling OpenCV, fatal error: stdlib.h: No such file or directory

那里的答案对我没有帮助。

最佳答案

啊,我现在想起来了:你必须替换 -isystem <place where stdlib.h is> 的实例与 -I <place where stdlib.h is> .

关于c++ - 如何从 cstdlib 修复 stdlib.h 的 include_next?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56318759/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com