码迷,mamicode.com
首页 > 其他好文 > 详细

minGW安装出错gcc: error: CreateProcess: No such file or directory

时间:2016-04-30 01:05:10      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:

我用的是在线安装的方式,调试的时候,出现以下错误:

23:23:45 **** Rebuild of configuration Debug for project helloworld_c ****
Info: Internal Builder is used for build
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o helloworld.o "..技术分享\\helloworld.c" 
gcc: error: CreateProcess: No such file or directory

23:23:46 Build Finished (took 342ms) 
 
解决办法:重装minGW就好了。
 
安装流程:
1.安装eclipse
2.安装CDT
3.下载mingw。配置环境变量(bin的环境变量即可) 系统变量的path追加:  C:\MinGW\bin
4.重启eclipse,eclipse会自动找得到mingw。
5.测试helloworld
#include<stdio.h>

int main(){
printf("%d",123);
return 0;
}

6.编译,运行

技术分享

如果出现开始说的错误,换个path,让mingw重新下载。我是因为下载过程出现down failed的现象。所以出现错误。之后,死活弄不好。

解决办法:重新下载就可以了。

 

minGW安装出错gcc: error: CreateProcess: No such file or directory

标签:

原文地址:http://www.cnblogs.com/H-BolinBlog/p/5447914.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!