gcc 2.91.66 problem on RH6.0

flevine@my-deja.com flevine@my-deja.com
Mon Sep 6 08:11:00 GMT 1999


I am running Red Hat Linux 6.0 with gcc 2.91.66.  I am having some
problems whenever I compile my program....   right now, I am just trying
to get the "Hello World" program to work.

The Program: hello.c
#include <stdio.h>

main()
{
printf("Hello World\n");
}

What I am typing: gcc -o hello hello.c

ok, so this should work..... except that when I try to run "hello" it
tells me "hello : command not found".

>From what I can gather, this means that gcc is not making a valid
executable.  Where am I going wrong?  I have used gcc at school many
times, and it's not that tough!

Thanks


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


More information about the Gcc-help mailing list