1

whenever i try to build my code, the compiler show this error: include nested too deeply error c++, and when i try to click Abort compilation .. a page with a cctype code is opened.

i'm using dev C++ , and i tried to uninstall and remove the configuration files, but nothing changed

no matter what code i write, even when i write the Hello World code, this error still exist! this is the code i'm trying right now:

#include <iostream>
using namespace std;
main ()
{

    cout << "hello world! ";
}

kindly see the below pictures.

image 1

image 2

Israa Hs
  • 11
  • 1
  • 3

2 Answers2

0

It appears you've overwritten a file which you shouldn't have, cctype. You should do as the other comments recommend, but also restore cctype and be sure to never edit parts of your compiler's standard library.

bitbangs
  • 506
  • 3
  • 6
  • How can I restore it? – Israa Hs Jul 20 '19 at 12:45
  • If you edited it recently, you may be able to open cctype and hit ctrl+z until it doesn't change anything anymore. Otherwise, you should probably remove and reinstall gcc from mingw. I haven't used mingw in quite a while so I can't help you there...but I'm getting the impression that it is included as part of Dev-C++ IDE. I would resolve this by uninstalling and reinstalling Dev-C++. – bitbangs Jul 20 '19 at 12:53
  • uninstalling it and reinstalling didn't solve the problem :( do u have another suggestions ? – Israa Hs Jul 21 '19 at 12:14
  • You should open another question. – bitbangs Jul 21 '19 at 13:21
0

Hey I solved this issue recently when it happened to me. What I did is that I deleted all C++ Editor related and C++ Compiler related files and then re-installed the Editor. I personally use Dev C++ for light use and during installation, you have to basically check one box which says that do you want to delete older files related to this compiler. Then you are all set!

itskarad
  • 105
  • 1
  • 9