简体   繁体   中英

How do I fix the include_next of stdlib.h from cstdlib?

I'm building the Retargetable Decompiler (RetDec for short), and am coming across this error:

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

I've dealt with this error before and have solved it, however I cannot remember how exactly I did it.

How do I fix this?

I've seen this question: Error compiling OpenCV, fatal error: stdlib.h: No such file or directory

The answers there do not help me.

啊,我现在记得:你必须用-I <place where stdlib.h is> -isystem <place where stdlib.h is>替换-isystem <place where stdlib.h is> -I <place where stdlib.h is>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM