Dev-C ++ can not find the compiler file

1

Using Dev c ++, everything had been fine and I had never had any problems so far. But recently I find myself with the following error:

  

C: \ Users \ Documents \ g ++. exe [Error] CreateProcess: No such file or directory

What's wrong? and what can I do to solve it? I do not know if it has anything to do with that I recently changed from Windows 7 to Windows Vista and that I saved the Dev-C ++ files when I had Win 7 (in my opinion it has nothing to do).

    
asked by AndroidBowl 18.02.2017 в 06:34
source

1 answer

1

The first thing to do is to check if you have g ++. exe in the directory C:\Users\Documents\ , which will not be (that's why you get that error). So what you should do is update Dev-C ++ with the appropriate directory. For this:

  • Locate where g++.exe is located on your computer. In my case, it is directly in the directory where I installed Dev-C ++, within MinGW64\bin

  • In Dev-C ++, click on the "Tools" menu ( Tools )

  • Select "Compiler Options ..." ( Compiler options ... )

  • Go to the "Programs" tab ( Programs )

  • Click on the icon next to the g ++ row

  • Select the directory where g++.exe is found

  • Click on "OK"

  • Now you have correctly configured the path of g++.exe and should not give you errors when you try to compile.

        
    answered by 18.02.2017 в 22:47