ubuntu下Eclipse工程调试

配置记录:

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>",但编译能通过;如下图左侧:

ubuntu下Eclipse工程调试

 在Project  ->  properties -> C/C++ General -> Paths and Symbols中看到GNU C++的includes指向目录默认为空,如上图右侧;

解决方法:手动添加包含路径,所选路径同GNU C;如下:

ubuntu下Eclipse工程调试

GNU C的默认路径如下:

ubuntu下Eclipse工程调试




ubuntu下Eclipse工程调试,布布扣,bubuko.com

ubuntu下Eclipse工程调试

上一篇:基于linux2.6.38.8内核启动过程完全解析[一]


下一篇:一个简单的Linux C程序开发框架—linux-dev-framework