FedoraThis forum is for the discussion of the Fedora Project.
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.
Hi,
this is Akram please help me out....
i have instal fedora to do practicals of c program.
but i am not able to compile and execute.
but if execute the same on windows then it is workling fine.....
please give me the detaile of how to complie and execute it on Fedora
i had tryed by
gcc filename.c
it is giving an eror"This file or directory does not exist eventhough i am on the same directry.
please do not demand urgent help from a voluntary forum.
Unless there is money attached? I'll respond urgently for cold hard cash
Seriously though, can you execute these commands from the shell (in the directory where your file is) and paste the results. Please do not quote them in part - paste the whole output:
Code:
ls -l filename.c
which gcc
gcc --version
Finally, if it is not too long, please insert the contents of the filename.c file.
Please enclose all these things in [code] tags to aid readability.
Last edited by matthewg42; 12-15-2007 at 06:18 PM.
Hi, chris
Thanks for the help.
i am the first in my college to execute any c program on Linux but The problem is i am not able to use the function of other library such as <conio.h>
and not even the scanf();
it is saying that no detail is given for it.
please help me.
conio.h does not exist under linux in any widely acknowledged state. you need to use suitable equivalents, e.g. the ncurses library for some of that functionality
Thanks for the help but i have one more problem.
i am not able to use the simple code like
getch();
in my program.
same error messege is comming no defination is given for the getch();
what must be done to avoid the same.
Moved to Fedora forum where this is more suitable and changed the title to something more suitable as well, instead of "Urgent" which doesn't describe your post or question whatsoever.
Distribution: Slackware 12, Fedora 8, Gentoo. (NO MORE MANDRIVA, GO AWAY EVIL THING)
Posts: 37
Rep:
if you have a problem with some function, just type
Code:
man function
should provide you with alot of info about the function - which #includes you need, arguments, return values, behavior etc
(and dont tell me man pages are ugly! )
Distribution: Fedora 7, Fedora 9, Solaris 10, Mac OS X, RHEL5
Posts: 71
Rep:
Quote:
Originally Posted by Mohammed Akram
i am not able to use the simple code like
getch();
in my program.
same error messege is comming no defination is given for the getch();
what must be done to avoid the same.
Hi!
This is because getch() is defined in conio.h, which is not an ANSI C library.
If you include #include <stdio.h> you can use getchar()
There are some differences between getch() and getchar() but I think this can help you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.