Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello to all...
i m new to linux and i m trying to run c program in c so problem is i cant include header file #include<conio.h> and its related function.....
first of all the description of your problem is not very good so its quite hard to give you any pointers. Also please use some punctuations. Makes it easier to read.
My guess is you are trying to compile c code?
if the compiler can't find the included libraries i guess they are not installed or are in the wrong directory. Try to find the include file with
find / -iname "conio.h"
It should give you the full path to the file. If not, it's not installed.
Else copy it to the directory where you are compiling and change the line
#include <conio.h>
to
#include "conio.h"
This tells the compiler to look in the working directory and not in the include pathes.
If you need any further help after describing your problem a bit more I'm glad to help you out.
Linux Distro's do include software compatibility with M$-DOS programs and terminal windows. They are not in every Distro, YOU will need to hunt around; or better yet, install the software to run the programs correctly.
Not sure if it's depreciated, but it's a security risk (buffer overflow) as a user can enter more characters than the size of the buffer (in the above example it's 19 plus a terminating NULL).
I think that scanf suffers from the same problem (correct me if I'm wrong).
I always use fgets.
iirc, although you may be able to find conio.h in an MS-DOS virtual env, it's not supported under native Linux (Unix doesn't assume the keybd in the same way) ... I could be wrong ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.