Dev-C++ 为 Makefile.win 和 g++ 停止提供错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20917121/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Dev-C++ giving error for Makefile.win and g++ stopping
提问by Ved
I have installed Dev-C++, but when I make a C program and run it, it gives me an error, like:
我已经安装了 Dev-C++,但是当我创建一个 C 程序并运行它时,它给了我一个错误,比如:
C:\Users\Ved\Dev-Cpp\Makefile.win [Build Error] [Project1.exe] Error 1
And when I checked the log it shows the following:
当我检查日志时,它显示以下内容:
Compiler: Default compiler
Building Makefile: "C:\Users\Ved\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Users\Ved\Dev-Cpp\Makefile.win" all
gcc.exe main.o -o "Project1.exe" -L"C:/Users/Ved/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.
make.exe: *** [Project1.exe] Error 1
Execution terminated
I have used Dev-C++ on my friends computer running Windows XP SP3, and it runs fine and gives the output.
我在运行 Windows XP SP3 的朋友计算机上使用了 Dev-C++,它运行良好并提供输出。
I am using Windows 8 64 bit, can I actually run Dev-C++ on 64 bit? And can this error be fixed?
我使用的是 Windows 8 64 位,我真的可以在 64 位上运行 Dev-C++ 吗?这个错误可以修复吗?
回答by Chiara Coppola
Check if in the compiler directory there is g++.exe. If you can see it go to:
检查编译器目录中是否有g++.exe。如果你能看到它,请转到:
and download the file full.exethen follow the instruction and put the directory in path. After that restart your pc, go to the cmdand try to compile there. If it works change the toolchain of the IDE. If you need help contact me :)
并下载文件full.exe然后按照说明将目录放在路径中。之后重新启动你的电脑,进入cmd并尝试在那里编译。如果可行,请更改 IDE 的工具链。如果您需要帮助,请联系我:)
回答by Ninh_ghoster
Just close all the other tab in project. It will run normally
只需关闭项目中的所有其他选项卡。它会正常运行