On Thu, 23 Sep 1999, Alvin B. Marcelo wrote:
> Hi,
>
> I have Redhat 5.2.
>
> I created this hello.c file
>
> #include <stdio.h>
>
> main()
> {
> printf ("Hello world!\n");
> }
>
> and compiled it with gcc hello.c (no errors noted; a.out was created)
>
> but when i type a.out this is the error message:
>
> host$ a.out
> bash: a.out: command not found
> <END>
The current directory is not in your $PATH. Try ./a.out
Are you doing this as root ?
Frank
>
> cc hello.c also compiles cleanly but a.out gives the same error message..
>
> Please help and TIA.
>
HI! I'm a .signature virus! cp me into your .signature file to help me spread!