我在试着用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我在网上找不到有用的东西。
发布于 2014-06-05 12:20:54
在gcc嵌入式团队(这里)的宝贵帮助下,我成功地编译了Chibios演示程序。我从他们的发射台上下载了gcc-arm-none-eabi-4_8-2014 Q1,它运行得很好。
发布于 2015-08-13 21:14:58
#include_next用于让一个文件以相同的名称扩展另一个文件。在这种情况下,“另一个”似乎是不可用的。
我使用Linux中的gcc-arm软件包编译代码时也遇到了同样的错误。我通过安装libnewlib-arm- by eabi:sudo apt-get install libnewlib-arm-none-eabi解决了这个问题。
发布于 2016-05-14 06:38:55
试试这个:
apt-get install avr-libc嗯,我的回答不适合ARM,只是希望其他avr用户在遇到同样的问题时能得到帮助。
https://stackoverflow.com/questions/23973971
复制相似问题