配置记录:
1.编译C++工程时,提示“
error :program “g++" not found in PATH
”故在Project -> properties -> C/C++ Build ->Environment修改Path环境变量;增加..armv7/codesourcery/arm-none-linux-gnueabi/bin,该path下包含g++
/home/kevinxiao/ShareFolder/linux/armv7/codesourcery/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/kevinxiao/ShareFolder/linux/armv7/codesourcery/arm-none-linux-gnueabi/bin
2.新建C++工程,提示找不到头文件"Unresolved inclusion: <stdio.h>",但编译能通过;如下图左侧:
在Project -> properties
-> C/C++ General -> Paths and Symbols中看到GNU C++的includes指向目录默认为空,如上图右侧;
解决方法:手动添加包含路径,所选路径同GNU C;如下:
GNU C的默认路径如下: