Reputation: 71
While running a simple c program I receive an
Unresolved inclusion: <conio.h>
What am I missing? I am using eclipse on fedora 13
. Please help me resolve this problem. If I am missing any file or haven't installed anything let me know. Also I am new to fedora. Guide me with proper steps please.
Thanks in advance.
Upvotes: 7
Views: 3639
Reputation: 83
conio.h is:
->Nonstandard (used in the older MS-DOS days for keyboard input)
->Windows-specific (so womp womp if you're using Linux or MacOS)
->Very laggy (I built a game with conio.h--most laggy thing on earth--the _getch() call is probably the culprit, but the system("cls") is also pretty slow.)
So in general, just use ncurses, but if you're lucky enough to be able to use conio.h, use it to start. ncurses is still probably better though, even though I haven't used ncurses personally.
Upvotes: 0
Reputation: 455132
conio.h is a C header file used in old MS-DOS compilers to create text user interfaces. It is not described in The C Programming Language book, and it is not part of the C standard library, ISO C nor is it required by POSIX.
Since you are on Linux, to resolve it don't include conio.h
and don't use any functions from that header.
Upvotes: 17