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

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 :)

Related

How do i install correctly g++ and clang++ complilers on windows 11 for visual studio code

Well, it's more like a two-part question. I was following step by step this youtube tutorial about setting up visual studio code and trying different compilers(I went to winlibs and downloaded Win64: Zip archive version) and everything was great until 35:30 where the terminal output was fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory compilation terminated. I uninstalled and repeated the process several times but the problem remained. I followed some other tutorials about fixing the problem but it didn't work and soon after something else came up. I uninstalled and installed again the compilers and when I tried to find them in the command prompt clang++ --version worked and gcc --version but when I tried the g++ --version this appeared on the screen.Screenshot Saying this can't run on your pc or whatever. I really need some help did I do something wrong? How do I fix both these issues (terminal error and this app cant run on your PC) I ran a virus scan,SFC scan, I run command prompt as administrator, and this does work but at the beginning I didn't have to do that and if I don't choose that option still says that and it's really frustrating. I would really appreciate some help. Thanks in advance!

Eclipse Cpp g++ command not found (MinGW & CDT Installed)

I am very new in using Eclipse as an IDE and I am facing many problems in configuring it. I may also be asking a few problems that may already be on forum but believe me I've tried almost all that I could have. SO coming towards the problem, I made a simple Hello World program for C++ to test out my config and YES I have installed MinGW and CDT. I have also edited the path environment variable for MinGW, and I chose MinGW GCC as toolchain while creating it and still my simple HELLO WORLD is giving me the error:
/bin/sh: g++: command not found make: *** [src/TEST2.o] Error 127
I have no idea what I have missed in between and it would be very helpful if someone would help me out correctly config my Eclipse :)
PS: I don't know if changing the tool(compiler) in Tool chain editor affects the process but I tried it as well...

Eclipse compiling error for C++

I just switched from mac to pc and I have to instaled Eclipse for my C++ programing and compiling. I have also instaled Cygwin64 and added the path and things like that. according to the internet it should work now but I get this error:
Problem Occured 'Launching test Debug' has encountered a problem. Error starting process.
In this message 'test' is the name of the class I try to run. Before running I ofcourse Build my project so that is not the problem.
Acording to eclipse there is also an error in the debug map in the makefile file on line 44: #echo 'Building target: $#' (this is what the message says)
My operating system is windows 8 64 bit.
Thanks for reading

What do I have to do to set C++ development in eclipse?

I am currently trying to set my eclipse so that I can start c++ development on my Windows computer. However, I am stuck with some errors. But first, here is what I did so far:
Installed the CDT for Eclipse
Installed Cygwin (with the additional packages gcc, gcc and make)
Added all "paths for headers" in Eclipse
The problem is that when I try to run my Hello World program, I get Launch failed. Binary not found.
I already build and rebuild the project but the program is still not running. It must be because of these errors that I have:
/bin/sh: g++: command not found
make: ***[src/HelloWorld.o] Error 127
What can I do to solve these errors?
Try running the Cygwin setup.exe again and select the packages for g++. Search for that and make sure those are installed. It should be under the name gcc-g++. The C++ compiler is installed separately from the C compiler.
Ok, I figured it out by myself. Since this really freaked me out, I want anyone else who has this problem to know how I solved it.
So apparently, since I had g++, gcc and all that installed, it had to be a problem with the path.
So what I did was check my path. If you don't know how to edit it, check this link http://www.computerhope.com/issues/ch000549.htm
So in there, I chose Path under the System variables and clicked on Edit.... What I noticed was that instead of C:\cygwin64 it said C:\cygwin. All I did was append the 64 (since I had installed the 64-bit version of cygwin) and I was done.
I restarted Eclipse, cleaned and built the project and the errors where gone!

NetBeans C++ Looking for make utility in the wrong location

My issue here is that I have all the proper compilers for C, C++, etc installed (MinGW), and they are functioning properly but Netbeans will not acces the make.exe util. I reinstalled NetBeans C++ because my last install became corrupted, and I now get this error whenever I build a project:
"/c/Users/User/Dropbox/C++ Workspace/Project/"C:/MinGW/msys/1.0/bin/make.exe"" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
/bin/sh: /c/Users/User/Dropbox/C++ Workspace/Project/C:/MinGW/msys/1.0/bin/make.exe: No such file or directory
make.exe": *** [.build-impl] Error 127
BUILD FAILED (exit value 2, total time: 303ms)
The solution to this problem seems trivial because NetBeans is looking for the make.exe util in the wrong location. The last part of the url it is searching for is correct, but it appears as though it is appending the project's location to the beginning of it. I may be wrong though. Does anyone know why NetBeans is doing this and/or how I can go about fixing it? Thanks!
Also, I tried the solution posted here, but I was never referencing any other version of the make utility except the MinGW one.
I have exactly the same problem with NetBeans IDE 7.3 and MinGW in that the pathname for the make file is concatenated with the project folder name; as a result the make file can not be found. After much agonizing trial and error, I finally got it working, at least for the Welcome_1 example supplied by NetBeans and my own original project that I was working on.
Remember when you first set up NetBeans it told you that mingw32-make.exe under C:\MinGW\bin is incompatible and asked you to use the make.exe under C:\MinGW\msys\1.0\bin ? It turned out it is the latter that's incompatible. I made a copy of mingw32-make.exe , renamed it make.exe (otherwise NetBeans refuses to use it) , updated the tool collection accordingly and voila it worked "BUILD SUCCESSFUL".
Hope this will help others in the future.
Update: just installed NetBeans IDE 7.3.1 and now "/C/MinGW/msys/1.0/bin/make.exe" works fine. So this appears to be a bug in NetBeans 7.3 that's fixed in 7.3.1. Hope this helps.
I've had excact same problem. Tried the way one post up, but it didn't solve my problem. By the way, main project compiled, but test did not (I use google test 1.7.0). I resolved this problem by downgrading JDK 7 and JRE 7 to update 17. You can download it from Oracle website. Here's a link: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
Sorry for my English.