I am compiling c file in Ubuntu Linux command line but there is one promble is conio.h not found help me please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I am compiling c file in Ubuntu Linux command line but there is one promble is conio.h not found help me please

and many anthor header files also not found

18th May 2018, 3:19 PM
Savan Patel
Savan  Patel - avatar
3 Answers
+ 2
Change : #include <conio.h> By : #ifdef _WIN32 // both 32 and 64 bits #include <conio.h> #else // include unix equivalent headers #endif And change every function conio provides that has a different name and / or parameters as the unix one
21st May 2018, 7:31 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
conio, it's for windows you need to install it seperately on Linux
18th May 2018, 3:25 PM
‎ ‏‏‎Anonymous Guy
+ 2
Don't use conio.h
18th May 2018, 4:35 PM
Akib
Akib - avatar