【问题标题】:gcc basic C program doesn't compile: File missing in Ubuntugcc 基本 C 程序无法编译:Ubuntu 中缺少文件
【发布时间】:2019-01-31 06:46:43
【问题描述】:

当我尝试编译一个基本的 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.

【问题讨论】:

  • 基本上,您没有完整安装相关标头。您需要(重新)安装相关软件包。

标签: c node.js gcc


【解决方案1】:

gcc/glibc 安装不完整或不兼容? Ubuntu package search 说你需要 libc6-dev/usr/include/x86_64-linux-gnu/bits/stdint-intn.h 提供的包

【讨论】:

    【解决方案2】:

    我认为你需要运行命令:

    locate stdint-intn.h
    

    找出这个文件在哪里。

    您的操作系统中可能缺少此文件

    【讨论】:

      猜你喜欢
      • 2015-11-22
      • 2019-07-07
      • 1970-01-01
      • 2015-04-21
      • 2012-02-10
      • 1970-01-01
      • 2012-11-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多