Unresolved inclusion: <conio.h>. Why?
Asked Answered
B

1

7

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.

Beekman answered 17/9, 2010 at 7:40 Comment(1)
Are you copying code from C for Dummies ?Wilkins
M
17

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.

Source

Mansoor answered 17/9, 2010 at 7:44 Comment(4)
Especially if you are using Fedora ;)Machos
FWIW, most people use conio.h just to use getch() so their program doesn't exit straight away in their IDE. There's a perfectly good standard alternative in getchar(): see https://mcmap.net/q/1477174/-2d-array-addition/…Farlay
@paxdiablo, +1 for enlightening me on the possible source of this ridiculous behavior.Oiler
@Mansoor But i am getting the same issue for stdio.h. why? Please explain.Coons

© 2022 - 2024 — McMap. All rights reserved.