hello world question
Kalyan Vaidyanathan
kalyan_v at hotmail.com
Sun Jun 2 18:52:58 EDT 2002
Hi,
Have a very basic question in C.
* I have installed RH 7.2.
* I created a file called hello.c which looks like this:
#include<stdio.h>
main() { printf("Hello World\n"); }
* To compile and run it, on a terminal window, I typed the following:
>gcc hello.c
* I get no errors and a.out is created
* I try to run a.out and I get the following error
>a.out
bash: a.out: command not found
I am not sure if I have some env setting that is wrong. Can somebody point
me to the right direction?
thx and regards,
-k
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
More information about the Discuss
mailing list