Jul*_*ian 2 macos gcc arm stm32
我正在使用 stm32f3 开发板,遇到错误
\n/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\n 9 | # include_next <stdint.h>\n | ^~~~~~~~~~\ncompilation terminated.\nRun Code Online (Sandbox Code Playgroud)\n在另一个问题中,我发现我需要安装“arm-none-eabi-newlib”,但是,当我输入
\nbrew search arm-none-eabi\nRun Code Online (Sandbox Code Playgroud)\n我只得到
\narm-none-eabi-binutils \xe2\x9c\x94 arm-none-eabi-gcc \xe2\x9c\x94 arm-none-eabi-gdb \xe2\x9c\x94\nRun Code Online (Sandbox Code Playgroud)\n没有可用的“newlib”软件包。
\n此外,我无法从谷歌找到任何有用的信息。
\n不要安装它
brew install arm-none-eabi-xxx
Run Code Online (Sandbox Code Playgroud)
使用
brew install --cask gcc-arm-embedded
Run Code Online (Sandbox Code Playgroud)
安装整个工具链。
在使用第二个安装之前卸载第一个安装。