首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Eclipse CDT编译异常Internal Builder: Cannot run program "gcc" ?¨

2013-09-11 
Eclipse CDT编译错误Internal Builder: Cannot run program gcc: ?????????¨?Eclipse+CDT 编辑C程序出错

Eclipse CDT编译错误Internal Builder: Cannot run program "gcc": ?????????¨?

Eclipse+CDT 编辑C程序出错误:

出现编译错误:

**** Rebuild of configuration Debug for project example ****

**** Internal Builder is used for build?????????????? ****
gcc -O0 -g3 -Wall -c -fmessage-length=0 -osrc\demo.o ..\src\demo.c
Internal Builder: Cannot run program "gcc": ?????????¨?
Build error occurred, build is stopped
Time consumed: 0 ms.

?

分析一下失败原因:

?

1.先把mingw的bin路径加到windows的环境变量中,然后在cmd下,输入gcc -v,显示ggc版本,是可以找到gcc的

2.不能把mingw安装到D盘的Program Files下了,因为路径中,包含空格,而gcc是linux下开发的,对空格默认是分隔符,所以此路径非法,所以找不到gcc

3.eclipse cdt安装?下载的与更新安装有一个比较大的区别,下载时plugins下面有一个jar:org.eclipse.cdt.core.win32_5.0.0.200902130801.jar
拷贝到eclipse 中的要解压成文件夹的型式,并删除原来的jar:org.eclipse.cdt.core.win32_5.0.0.200902130801.jar

?

在去编译就能成功

参考文章:http://blog.sina.com.cn/s/blog_61ecbc2e0100zlzz.html

?

?

热点排行