开发的C在Windows 8:GCC内部错误 [英] Dev C in Windows 8: gcc Internal Error

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

问题描述

我是老师的一个C编程类的助手和教师使用开发的C ++的编译器的类。个人而言,我会用一个不同的,但选择这里没有我的。最近我安装了Windows 8专业版64位上可用的DreamSpark虽然我的大学,这样我就可以用一些地铁应用程序开发一些比赛开始。不幸的是,开发C ++已经停止编译。它previously工作正常的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:\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.

Execution terminated
Compilation successful

报告说,编译成功,但它不是,所以没有可执行的。我想知道如果任何人有什么可能会被开发C ++对这个版本的Windows运行的任何想法,所以我没有在虚拟机上运行开发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.

推荐答案

我认为,开发 - C ++配备了一个非常老版本的MinGW的(3.4.x如果我没有记错的话)。 4.2.2之前版本的MinGW将在Windows Vista上编译程序的问题,后来,除非他们是上的路径。

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版本(如你在你已经做的评论中提及),或者你可以添加的MinGW \\ bin目录添加到系统路径。

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 MinGW\bin directory to the system path.

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

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