ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
hey guys,
e i have only recently installed red hat 8.0
and i tried 2 run a c program on it it compiles fine but doenst show any o/p i did the following logged on as root
it shows [root@localuser...]#
and then i did vi new.c
wrote the program
did esc :wq to come out
snd tired to exec it
i did
# gcc new.c -o new
i also tried
#gcc new.c
the program complies but when i type
#./a.out
or#./new it doesnt show me any o/p
could u pls help me
i would really be grateful
thanx
hey moe,
thankx a lot man.the /n thing really worked,but could u tell me why do i
need to actually enter \n i mean it should work without it shouldnt it??
anyways i have another problem nowmi downloaded xine vcd player(xine-ui-0.9.18cvs-030215.i586.rpm)
and also curl-7.10.3-1.i386.rpm installed it on red hat8.0 and when i type
xine in the console it opens up but after a few minutes my m/c logs out and
got to the text logon screen and then the gui screen does anyone know why this happens???
Originally posted by franki_boy hey moe,
thankx a lot man.the /n thing really worked,but could u tell me why do i
need to actually enter \n i mean it should work without it shouldnt it??
Actually it does print without "\n", but when the program exit, the command prompt overwrite the printed line so you can't see it. So you have to append "\n" and give the new line command so that you get back to command prompt only after the printed line. Make sense right?
But in windows, it is not the case I think.
Last edited by moeminhtun; 02-15-2003 at 11:07 AM.
anyways i have another problem nowmi downloaded xine vcd player(xine-ui-0.9.18cvs-030215.i586.rpm)
and also curl-7.10.3-1.i386.rpm installed it on red hat8.0 and when i type
xine in the console it opens up but after a few minutes my m/c logs out and
got to the text logon screen and then the gui screen does anyone know why this happens???
hmm.. I don't know much in that area. I think you should ask this in the Linux-general or Software forum so that you can get the answer faster. Only the programming guys are coming to this forum.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.