Windows 8 中的 Dev C:gcc 内部错误 [英] Dev C in Windows 8: gcc Internal Error

查看:16
本文介绍了Windows 8 中的 Dev C:gcc 内部错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个C编程课的助教,老师使用Dev C++作为该课的编译器.我个人会使用不同的,但这里不是我的选择.最近我安装了 Windows 8 Professional 64 位,虽然我的大学在 Dreamspark 上可用,所以我可以从一些竞赛的地铁应用程序开发开始.不幸的是,Dev C++ 已经停止编译.它以前在 Windows 7 64 位上运行良好.

I am a teacher's assistant for a C programming class, and the instructor uses Dev C++ as the compiler for the class. Personally I would use a different one, but the choice is not mine here. Recently I installed the Windows 8 Professional 64 bit that is available on Dreamspark though my university, so I can start with some metro app development for some contests. Unfortunately, Dev C++ has stopped compiling. It previously worked fine with Windows 7 64 bit.

编译返回报告时出现错误:

I get an error when compiling that reports back:

Compiler: Default compiler
Executing  gcc.exe...
gcc.exe "C:UsersJamesDocumentsHomeworkTA_CPRE_185counter.c" -o "C:UsersJamesDocumentsHomeworkTA_CPRE_185counter.exe"    -I"C:Dev-Cppinclude"   -L"C:Dev-Cpplib" 
gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

Execution terminated
Compilation successful

它说编译成功但事实并非如此,因此没有生成可执行文件.我想知道是否有人知道什么可以让 Dev C++ 在这个版本的 Windows 上工作,所以我不必在虚拟机中运行 Dev C++?我需要它工作,所以我可以做课堂演示.

It says the compilation is successful but it is not, so no executable is made. I want to know if anyone has any ideas of what might get Dev C++ to work on this version of Windows, so I don't have to run Dev C++ in a virtual machine? I need it working, so I can do class demonstrations.

推荐答案

我相信 Dev-C++ 带有一个非常旧的 MinGW 版本(如果我没记错的话是 3.4.x).4.2.2 之前的 MinGW 版本在 Windows Vista 及更高版本上编译程序时会出现问题,除非它们位于 PATH 上.

I believe that Dev-C++ comes with a very old version of MinGW (3.4.x if I'm not mistaken). MinGW versions before 4.2.2 will have problems compiling programs on Windows Vista and later unless they are on the PATH.

因此,您可以更新您的 MinGW 版本(正如您在已经完成的评论中提到的那样),或者您可以将 MinGWin 目录添加到系统路径.

So you can either update your version of MinGW (as you mentioned in a comment that you have already done), or you can add the MinGWin directory to the system path.

这篇关于Windows 8 中的 Dev C:gcc 内部错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆