我正在尝试使用 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/