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
相关推荐
星野爱8951 天前
崩坏星穹铁道4.4版本即将前瞻!Mac畅玩PC端开荒新版本
macos
funnycoffee1231 天前
lacp报文占多少字节?报文的目的mac
网络·网络协议·macos
itwangyang5201 天前
Claude Code macOS 安装完整指南:Homebrew、原生脚本与常见问题解决
macos
zlinear数据采集卡2 天前
从协议解析到波形实时显示:硬核拆解ZLinear采集卡上位机软件的开发架构
arm开发·单片机·嵌入式硬件·fpga开发·架构·开源
汤姆yu2 天前
macOS系统下Aider完整安装、配置与实战使用教程
大数据·人工智能·算法·macos·github·copilot
奔跑的架构师2 天前
[A-48]ARMv9/v8-电源状态管理机制(PSCI协调机制)
android·linux·arm开发·arm
想你依然心痛2 天前
RT-Thread组件生态:SAL网络框架与AT组件实战——网络抽象、AT指令
网络·arm开发·at·sal
码云数智-园园2 天前
SwiftUI 6 生产落地踩坑实录
macos·objective-c·cocoa
向阳是我2 天前
在 Mac(M2)上用 faster-whisper 实现高精度中文语音转文字
python·macos·ai·whisper·语音识别
Tisfy2 天前
MacOS:首次外接键盘初始化设置(Option/Command互换、左上角·~而非§±)
macos·计算机外设