c - Debian 上没有 stdint.h 文件

标签 c gcc arm embedded stm32

我正在尝试使用 Chibios。他们提供的示例代码似乎需要 stdint.h 文件。 Makefile 给出以下错误:

/usr/lib/gcc/arm-none-eabi/4.8/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
 # include_next <stdint.h>
                          ^
compilation terminated.
../../os/ports/GCC/ARMCMx/rules.mk:182: recipe for target 'build/obj/crt0.o' failed
make: *** [build/obj/crt0.o] Error 1

我在网上找不到任何有用的东西。

最佳答案

#include_next 用于让一个文件扩充另一个同名文件。在这种情况下,“另一个”似乎不可用。

我在尝试使用 Linux Mint 中的 gcc-arm 包 gcc-arm-none-eabi 编译我的代码时遇到了同样的错误。我通过安装 libnewlib-arm-none-eabi 解决了这个问题:sudo apt-get install libnewlib-arm-none-eabi

关于c - Debian 上没有 stdint.h 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23973971/

相关文章:

c - SDL 'no available video device' 错误且未检测到 x11

python - 从Python调用C的hello world

c++ - 在 raspbian 上构建时出现 gcc 编译器错误

linux - 如何读取arm linux中的内核镜像?

c - geeksforgeeks 的 k 最大元素练习

c - strlen 和 malloc : C memory leaks

无法将文件名分配给vim中的环境变量

c++ - 为什么编译器在编译两个相似的类时输出不同?

c++ - NEON:将 int8x16_t 解包为一对 int16x8 并将一对 int16x8_t 打包为 int8x16_t

c - Arm客户端服务器程序开发