conio.h is missing from Windows

Satya Ashok Kumar picture Satya Ashok Kumar · Aug 6, 2014 · Viewed 19k times · Source

I usually use VS but trying cygwin for the first time. I am using windows 7 but on compiling hello world program using gcc, it says "fatal error: conio.h: no such file or directory".

I am using Windows 7 and it seems conio.h is missing from my system. Can someone please tell me how to resolve this issue.

Thanks!!

Answer

Am_I_Helpful picture Am_I_Helpful · Aug 6, 2014

In Cygwin there doesn't exist any such header file called conio.h! Also, you don't need it either because it automatically holds screen for you without using getch() and for clrscr() you do have system("clear") in Cygwin!