macOS下arm编译缺少stdint.h等问题

问题

通过brew安装的 arm-none-eabi-gcc 编译工程时出现大量类似错误如下:

cpp 复制代码
/opt/homebrew/Cellar/arm-none-eabi-gcc/13.2.0/lib/gcc/arm-none-eabi/13.2.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory

问题原因

不能使用arm-none-eabi-gcc安装编译工具链。

解决方案

打开终端输入命令,先删除brew安装的gcc环境,再安装gcc-arm-embedded环境:

bash 复制代码
brew uninstall arm-none-eabi-gcc
brew autoremove
brew install --cask gcc-arm-embedded
相关推荐
皮卡车厘子21 小时前
Mac 挂载目录
macos
良逍Ai出海1 天前
在 Windows & macOS 上安装 Claude Code,并使用第三方 Key 的完整教程
windows·macos
热爱生活的五柒1 天前
linux/mac/wsl如何使用claude code,并配置免费的硅基流动API?(官方的需要付费订阅)
linux·运维·macos
代码游侠1 天前
学习笔记——Linux字符设备驱动
linux·运维·arm开发·嵌入式硬件·学习·架构
胖胖大王叫我来巡山1 天前
mac本地安装DataEase桌面版
macos
奋斗者1号1 天前
OpenClaw 部署方式对比:云端、WSL、Mac 本机、Ubuntu 虚拟机(2026年2月最新主流实践)
linux·ubuntu·macos
玉梅小洋1 天前
Android SDK 安装指南(MacOS 和 Windows)
android·windows·macos·sdk
2501_916007471 天前
没有 Mac 用户如何上架 App Store,IPA生成、证书与描述文件管理、跨平台上传
android·macos·ios·小程序·uni-app·iphone·webview
胖胖大王叫我来巡山1 天前
Mac通过源码安装部署SQLBOT
macos
syseptember1 天前
Linux网络基础
linux·网络·arm开发