关于Dev c++ 不能在Win8系统下正常编译、运行的问题

2 篇文章 0 订阅
1 篇文章 0 订阅

一、问题描述

With the latest release of windows 8,a new GNU has also been created and due to which many compilers might not work properly with the new GNU.Due to change in the GNU of windows 8,new versions of compilers are coded for C and C++ program to successfully run. Most of the users might get following error while using the older version of dev-cpp in windows 8 which will generate the following error :

Compiler: Default compiler
Executing  gcc.exe...gcc.exe "C:\Users\James\Documents\Homework\TA_CPRE_185\counter.c" -o "C:\Users\James\Documents\Homework\TA_CPRE_185\counter.exe"    -I"C:\Dev-Cpp\include"   -L"C:\Dev-Cpp\lib"

gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

二、解决办法

This error is generated due to the use of Older version of MinGW(Minimalist GNU for windows) and TDM-GCC in Windows 8(出错的原因是你用了旧版本的MinGW和TDM_GCC).

You can download newer version of Dev-Cpp for windows 8 from the following link(你只需要从下方链接下载for Win8的最新版即可)
Dev-Cpp 5.3.0.3 TDM-GCC x64 4.6.1 for windows 8(64bit)

上面的链接是64位版本的,32位版本的链接请自行到此处寻找相应版本下载:
32bit_Download_Click me

首先卸载旧版本的Dev-Cpp,接着点击上面的链接下载安装文件。笔者下载安装后,亲测了一番:在Win8下随便写个"Helllo World"可以正常运行!终于解决了诸如:

[Resource error] no resources  或者 Aborted (program collect2) 

等各种奇葩问题了。


欲了解更多,可前往原英文博客查看:Original Article

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值