Dev C Not Compiling Error

If you are getting the error that g++.exe has stopped working , you might be using Bloodshed Dev C++ in Windows 8 /8.1/10 Operating System. Whatever it may be I’ve faced this problem several times during executing my programs in the Dev C++ compiler . It generally happens when you install Dev C++ and try to compile a cpp file in Windows 8/8.1 or in Windows 10, a windows pops-up saying that g++ has stopped working. Its not so easy to figure out the problem as not all of you might be using same version of Dev C++ Compiler and may be even on different Operating Systems.Whatever it may be , in this post I will discuss a few methods. Any of these method might work for you. I recommend to follow each method step by step and follow each method one after another.

Sep 17, 2015 Hi Everyone, I recently completed the instructions for installing rstan and ran the example code. This is what popped out. I cannot seem to find a reference to it in your issues, so I concluded it. Just not to overlook the obvious, but did you search the directory where you installed Dev-C for 'iostream' to make sure iostream.h and iostream.cpp are there?

Dev C Not Compiling Error
  • How to fix g++.exe has stopped working problem?
Method 1
In this method , it is just changing of various parameters , this could fix the g++ has stopped working error. I recommend this method for 64-bit users ( people mostly using laptops are 64 bit ) and I recommend Method 2 for x86 ( 32-bit users ).
Dev C Not Compiling Error
Click on Tools in the top bar as shown in the screenshot and select Compiler Options
Step 2 :
Select Programs pane in the Compiler Options window and change the gcc , c++ , make parameters.
Note:
  • In the newer versions make still stands as mingw32-make.exe , don’t change it.
  • These parameters may be same be shown in your Dev C++ Compiler ( based on the version ) , if problem still persists , skip to the next Method.
If the above method , didn’t work try the next method.
In this method , I recommend you to download the most stable version Dev C++ here ( wait 5 seconds for the download to begin ) and I personally tried this method using this version of Dev C++.
After downloading the above version of Dev C++ , download the below two important header files as these below header files mostly fixes all the errors with Dev C++ on Windows 8/8.1 and Windows 10 even and works fine.
Step 2 :
Click on the files to download the header files. These files are open source anyone can download them and edit them.
Step 3:
After downloading both the files , paste them into the following destination folder.

Dev C Not Compiling Error Windows 10

C:Program FilesDev-CppMinGW64x86_64-w64-mingw32include

Dev C Not Compiling Error Code

Start Dev-C++ on your compiler now you can work with Dev C++ seamlessly without any errors. This method mostly works and I’ve tested it. You won’t get g++ exception during compilation.

Dev C Not Compiling Error Free

If the above solution doesn’t fix the problem you can download the updated setup which includes Latest Dev-C++ (32bit and 64bit). You canDowload Latest Dev-C++here(47MB) and comment the errors you face during this procedure.

Dev C Not Compiling Error In Firefox

P: 4
'permission denied'
'id returned 1 exit status'
im compiling with dev c++ 4.9.9.2
im using windows vista, but i have compiled and ran other programs before.
pretty simple program, some parts in french, just wondering what i have to do fix it.
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. int main()
  5. {
  6. int x= 0; // declaration des variables et leur donne une valeur de depart '0'
  7. int bande1 = 0; // declaration des variables et leur donne une valeur de depart '0'
  8. int bande2 = 0; // declaration des variables et leur donne une valeur de depart '0'
  9. int bande3 = 0; // declaration des variables et leur donne une valeur de depart '0'
  10. float vresistance = 0; // declaration des variables et leur donne une valeur de depart '0'
  11. float vresistance2 = 0; // declaration des variables et leur donne une valeur de depart '0'
  12. do{
  13. printf('n Voici le tableau des couleurs des bandes, chaque couleur est associe a un numero');
  14. printf('Si tu veut quitter le programme tape (-1) pour la valeur de n'importe bandenn');
  15. printf('0-Noir n' '1-Brun n' '2-Rouge n' '3-Orange n' '4-Jaune n' '5-Vert n' '6-Bleu n' '7-Violet n' '8-Gris n' '9-Blanc nnn');
  16. printf('Quelle est la valeur de la premiere bande de couleur n');
  17. scanf('%d',& bande1);
  18. while(bande1 > 9 && bande1 < -1){
  19. if(bande1 -1) {
  20. system('PAUSE');
  21. return(0); }
  22. else {
  23. printf('mauvaise entree , quelle est la valeur de la premiere bande de couleur n');
  24. scanf('%d',& bande1);}
  25. }
  26. printf('Quelle est la valeur de la deuxieme bande de couleur n');
  27. scanf('%d',&bande2);
  28. while(bande2 > 9 && bande2 < -1){
  29. if(bande2 -1) {
  30. system('PAUSE');
  31. return(0); }
  32. else {
  33. printf('mauvaise entree , quelle est la valeur de la deuxieme bande de couleur n');
  34. scanf('%d',& bande2);}
  35. }
  36. printf('Quelle est la valeur de la troisieme bande de couleur n');
  37. scanf('%d',&bande3);
  38. while(bande3 > 9 && bande3 < -1){
  39. if(bande3 -1) {
  40. system('PAUSE');
  41. return(0); }
  42. else {
  43. printf('mauvaise entree , quelle est la valeur de la troisieme bande de couleur n');
  44. scanf('%d',& bande3); }
  45. }
  46. vresistance = ((bande1*10)+(bande2))* pow(10,bande3);
  47. printf('%d',vresistance);
  48. if(vresistance >= 1000){
  49. vresistance2 = vresistance /1000;
  50. printf('la valeur de la resistance(kilo-ohms) est : %f n', vresistance2);
  51. }
  52. else {
  53. printf('la valeur de la resistance (ohms) est : %f n', vresistance);
  54. }
  55. }while(x 0);
  56. system('PAUSE');
  57. return 0;
  58. }