conio.h: No such file or directory

General questions regarding the usage of CodeLite
BigThetan
CodeLite Curious
Posts: 1
Joined: Fri Feb 26, 2010 11:27 am
Genuine User: Yes
IDE Question: C++
Contact:

conio.h: No such file or directory

Post by BigThetan »

Hi all,

I get this message when I try to build my program. What am i doing wrong. I am using #include <conio.h>. Do I need to point codelite to some places that additional header files are kept?

----------Building project:[ MyTemplate - Debug ] (Preprocess Single File)----------
gcc -c "/home/eric/My Code Space/main.c" -g -o ./Debug/main.o "-I." "-I."
/home/eric/My Code Space/main.c:2:19: error: conio.h: No such file or directory
make: *** [Debug/main.o] Error 1
----------Build Ended----------
1 errors, 0 warnings
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: conio.h: No such file or directory

Post by eranif »

The problem is that conio is not included in MinGW.

http://en.wikipedia.org/wiki/Conio.h

There is a project on sourceforget which implements conio, but I never tried it, you might want to have a look at it:

http://sourceforge.net/projects/conio/
Eran
Make sure you have read the HOW TO POST thread
Post Reply