Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C Debian上没有stdint.h文件_C_Gcc_Arm_Embedded_Stm32 - Fatal编程技术网

C Debian上没有stdint.h文件

C Debian上没有stdint.h文件,c,gcc,arm,embedded,stm32,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. ../../o

我正在尝试使用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
/usr/lib/gcc/arm-none-eabi/4.8/include/stdint.h:9:26:致命错误:stdint.h:没有这样的文件或目录
#下一步包括
^
编译终止。
../../os/ports/GCC/ARMCMx/rules.mk:182:目标“build/obj/crt0.o”的配方失败
make:**[build/obj/crt0.o]错误1

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

在gcc arm嵌入式团队()的宝贵帮助下,我成功地编译了Chibios演示程序。我从他们的launchpad站点下载了gcc-arm-none-eabi-4_8-2014q1,效果很好。

\include#next
用于让一个文件增加另一个同名文件。在这种情况下,似乎“另一个”不可用

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

尝试以下方法:

apt-get install avr-libc

嗯,我的答案不适合ARM,只希望其他avr用户在遇到相同问题时能得到帮助。

可能您忘记指定gcc的
-f重建
选项。

\include\u next
是非标准的。你为什么试图使用它而不是包含?我与那句话无关#include_next放在/usr/lib/gcc/arm-none-eabi/4.8/include/stdint.h中,它与arm-none-eabi-gcc包一起提供。你想让我编辑那个文件吗?对不起,我没注意到。不,我不建议编辑那个文件。我不知道为什么它会使用
#include_next
apt get install libc6 dev是我的解决方案。感谢您在fedora/etcAlso上使用arm none eabi newlib
arm none eabi newlib
在Arch上使用这有什么帮助?很明显,目标是ARM/STM32,而不是AVR。问题不是stdint.h,我只是在谷歌上搜索了AVR libc中的哪一个。它适用于我的teensy项目,但stdint.h是特定于体系结构的,对于8位AVR来说,它不适合与32位ARM一起使用。问题已清楚地标记,正文文本清楚地指示了正在使用的工具链。这里的解决办法是正确地安装正确的工具链,而这不是它。@Clifford,谢谢你的更正。我只是在这里找到了stdint.h:。你可以和第一只手臂相比。