Dev C in Windows 8: gcc Internal Error(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 内部错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Windows 8 中的 Dev C:gcc 内部错误
基础教程推荐
- 为什么语句不能出现在命名空间范围内? 2021-01-01
- 如何使图像调整大小以在 Qt 中缩放? 2021-01-01
- 在 C++ 中循环遍历所有 Lua 全局变量 2021-01-01
- Windows Media Foundation 录制音频 2021-01-01
- 使用从字符串中提取的参数调用函数 2022-01-01
- 从 std::cin 读取密码 2021-01-01
- 如何“在 Finder 中显示"或“在资源管理器中显 2021-01-01
- 管理共享内存应该分配多少内存?(助推) 2022-12-07
- 为 C/C++ 中的项目的 makefile 生成依赖项 2022-01-01
- 如何在不破坏 vtbl 的情况下做相当于 memset(this, ...) 的操作? 2022-01-01