繁体   English   中英

gcc基本C程序无法编译:Ubuntu中缺少文件

[英]gcc basic C program doesn't compile: File missing in Ubuntu

当我尝试编译基本的C程序时,这已经发生在我身上。 有人可以帮忙吗?

我为此感到麻烦,因为在npm的node-gyp重建中。

In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9:0,
                 from test.c:1:
/usr/include/stdint.h:34:10: fatal error: bits/stdint-intn.h: No such file or directory
 #include <bits/stdint-intn.h>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

gcc / glibc安装不完整或不兼容? Ubuntu软件包搜索表明您需要/usr/include/x86_64-linux-gnu/bits/stdint-intn.h libc6-dev软件包

我认为您需要运行命令:

locate stdint-intn.h

找出此文件在哪里。

也许您的操作系统中缺少此文件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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