【发布时间】:2014-07-21 08:34:20
【问题描述】:
我正在尝试使用 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是非标准的。你为什么尝试使用它而不是#include? -
我与该声明无关。 #include_next 位于 arm-none-eabi-gcc 软件包附带的 /usr/lib/gcc/arm-none-eabi/4.8/include/stdint.h 中。你要我编辑那个文件吗?
-
对不起,我没有注意到。不,我不建议编辑该文件。我不知道为什么会使用
#include_next