gpt4 book ai didi

c - 未找到 string.h 文件

转载 作者:行者123 更新时间:2023-12-04 19:27:22 24 4
gpt4 key购买 nike

#include <string.h> 
Clang 找不到 string.h .
然后我给它一个更好的路径,但没有找到另一个文件:
[build] /usr/include/string.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
[build] #include <bits/libc-header-start.h>
[build] ^~~~~~~~~~~~~~~~~~~~~~~~~~
我应该怎么办?
我可以下载 string.h对于我的“llvm”环境并将其粘贴到那里?:
/usr/include/llvm-10/llvm
PHOTO OF THE ERROR

最佳答案

如果你在 ubuntu 系统上,以后遇到此类问题,可以通过输入以下命令找到答案:

apt-file search bits/libc-header-start.h
然后使用 apt-get install xxx下载对应的库文件.如果是red hat系统或其他,应该有类似的命令。
enter image description here

关于c - 未找到 string.h 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69835099/

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