Lỗi không biên dichj được dev c++ 4.9.9.2 năm 2024

OK, i've already done a lot of work with DevC++, consoles, OpenGL stuff, libraries etc. etc. Now I was forced to reinstall, so I DLoaded 4.9.9.2, but old code doesn't compile, even example "hello" doesn't, compile log follows:

Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all g++.exe -c Hello.cpp -o Hello.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"

g++.exe: installation problem, cannot exec `cc1plus': No such file or directory

make.exe: *** [Hello.o] Error 1

Execution terminated

I have it in C:\dev-cpp, no spaces, nothing else changed, cc1plus is there, I SWEAR IT IS. I have been sitting here for ten hours solving various stuff,I'm tired and frustrated, and this kinda finished me. I don't really want to know whats wrong right now, because I'll be going out to have a drink or kill someone or I don't know....Oh my God. I hate IT with all its SW/HW/FW or whatever, I really do.

  • Lỗi không biên dichj được dev c++ 4.9.9.2 năm 2024

    No, that's not it, I did the Uninst/inst thing very carefully. However, "C:\Dev-Cpp\lib\gcc\mingw32\3.4.2", where cc1plus is stored, was missing in the "Compiler -Directories-Bin" options. I fixed that, but now I get something like Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all g++.exe Hello.o -o "Hello.exe" -L"C:/Dev-Cpp/lib" -L"C:/Dev-Cpp/bin" -L"C:/Dev-Cpp/lib" ../../lib/crt2.o ld: crt2.o: No such file: No such file or directory make.exe: *** [Hello.exe] Error 1 Execution terminated although there IS crt2.o in Dev-cpp/lib, there IS ld.exe in Dev-cpp/bin and I explicitly added both paths into corresponding "Directories". Petr

    • Lỗi không biên dichj được dev c++ 4.9.9.2 năm 2024

      "I did the Uninst/inst thing very carefully" Ack. The directions I pointed you to state QUITE CLEARLY That, if you are still having a problem, you needed to tell us exactly what you did to uninstall. Exactly. Not give some fact free statement that you followed the directions carefully. Try again. Try harder. I can see from your log that you have a mixed installation. You did not get your previous installation cleaned out. Wayne

      • Lỗi không biên dichj được dev c++ 4.9.9.2 năm 2024
             Okay, I ran Uninstal. I deleted dev-cpp folder. I checked my Documents and Settings/Local Settings/App. Data and Documents and Settings/App. Data folders, whether there are some devcpp's .cfg or .ini files. (Yes, I know bout that "hidden dir/file" issue, that's not the problem) I scanned the whole drive for "devcpp" and deleted even temporary internet files and files in C:\\windows\\prefetch. Then I ran install and kept all settings at defaults by clicking "next" or "finish" or whatever. And thats it. Some time ago, I reinstalled one of the previous versions (4.9.8.x), and everything went fine....  
             Petr  
        
        • Lỗi không biên dichj được dev c++ 4.9.9.2 năm 2024
                        Petr,  
                        Your log shows you missed something. What it is, I can't tell you, because I am not sitting there with you. (You can be glad about that, I need a shower)  
                        Wayne  
          
          • Lỗi không biên dichj được dev c++ 4.9.9.2 năm 2024
                                      Well, sure, I know pretty well that those machines have no thoughts of their own, I know that they just do what you tell them to do. It's just that I wrote my first program in 1990 (on Sinclair ZX Spectrum, god bless that machine). And now, 15 years later, I'm not even able to run "Hello" example. Pheh.."computers make living easier." :-)).  
                                      Petr
  • ![](https://a.fsdn.com/con/images/sandiego/icons/default-avatar.png) S-O-L-V-E-D!! And what was the problem? Well, last week, I needed to install SIMULA compiler, which was quite old, and I hadn't much time so I just quickly followed readme without really reading it....It actually installed some old version of gcc (compiling SIMULA source to C source and then using gcc), and (that was the point), set paths in windows registry for gcc compiler for its purposes....However, since there was NO uninstal program, after removal of SIMULA compiler those settings remained the same, pointing to non-existing directory. Since dev c++ installer doesn't change these, it used gcc paths set by SIMULA installer. Pffffffffffffffff. God exists, and I'm again somewhat smarter.
  • Lỗi không biên dichj được dev c++ 4.9.9.2 năm 2024
    I recommend you do a clean uninstall - please check out the directions in the FAQ thread in this forum. Make sure you fully nuke Dev, and then reinstall 4.9.9.2. Wayne

Lỗi không biên dichj được dev c++ 4.9.9.2 năm 2024

For comparison, here is my compile log for the hello example:

Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win" Executing make clean rm -f Hello.o Hello.exe

g++.exe -c Hello.cpp -o Hello.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"

g++.exe Hello.o -o "Hello.exe" -L"C:/Dev-Cpp/lib"

Execution terminated Compilation successful

Note the paths? They took that form when 4.9.9.2 came around. Your paths are from an earlier release. Note also there is no extra:

../../lib/crt2.o

in the command stream. It is vital that in the uninstall process you remove all traces of earlier installations. It takes some time and some thought, and realizing that certain files are hidden, so a default configuration search will not find them.