我是 Eclipse IDE for C/C++ 的新手。 我想在 Eclipse IDE 中为 C/C++ 开发人员 Mars Milestone 4 (4.5.0M4) 设置 gcc-arm-embedded,我刚刚下载了 https://launchpad.net/gcc-arm-embedded/+download ,现在我想我必须在 Eclipse 的某个地方设置 PATH,因为我在 1 个项目中遇到了这个错误
Program "arm-none-eabi-g++" not found in PATH
Program "arm-none-eabi-gcc" not found in PATH
错误的位置在
Project Properties -> C/C++ General -> Preprocessor Include Paths, Macros, etc -> Languages (GNU C) -> [CDT GCC Built-in Compiler Settings Cross ARM]
但我无法编辑此条目:“此提供程序的设置条目由系统提供,不可编辑”
我试过:
导出 PATH=$PATH:/Users/joanot/Development/gcc-arm-none-eabi-4_9-2014q4/bin
在
项目属性 -> 路径和符号 -> 添加目录/Users/joanot/Development/gcc-arm-none-eabi-4_9-2014q4/bin 和
最佳答案
在 Eclipse -> Preferences -> C/C++ -> Build -> Build Variables 中:
创建 1 个名为 GCC_EABI 的变量,type= Directory,value=/usr/local/gcc-arm-none-eabi-4_9-2014q4/bin
在 Eclipse -> Preferences -> C/C++ -> Build -> Environment 中:
添加 -> 名称 = PATH,值 = ${GCC_EABI}
关于c++ - 在 Eclipse IDE 中设置 gcc ( gcc-arm-embedded ) for C/C++ Developers Mars in OS X,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28117451/