简体   繁体   中英

Dev-C++ giving error for Makefile.win and g++ stopping

I have installed Dev-C++, but when I make a C program and run it, it gives me an error, like:

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.

I am using Windows 8 64 bit, can I actually run Dev-C++ on 64 bit? And can this error be fixed?

I have used the old Dev-C++ in the past and I've have had it break randomly on me at times..

Bloodshed Dev-C++ hasn't been updated for years and development has actually stopped on it.

If you really like the environment consider getting the updated and maintained Orwell Dev C++ that is improved, faster and much cleaner.

This is Solution to Solve error easily

Close All, then Go to Project options and in linker tab write the following and click ok: -lopengl32 -lfreeglut -lglu32 Now execute the program

Just close all the other tab in project. It will run normally

Check if in the compiler directory there is g++.exe . If you can see it go to:

Installing c++/g++ on Windows

and download the file full.exe then follow the instruction and put the directory in path. After that restart your pc, go to the cmd and try to compile there. If it works change the toolchain of the IDE. If you need help contact me :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM