If you are still in the directory you compiled it in try running it as
follows "./filename" That will run it if you are in the same directory
you compiled in. I suspect the problem you are seeing is because the
directory you compiled in is not included in your environment's path
variable.
Secondly, did you compile properly, i.e "gcc filename.c -o filename".
If not, look for a file called 'a.out', which you could then run by
typing './a.out'
Ken Wilson
First Law of Optimization: The speed of a nonworking program is
irrelevant
(Steve Heller, 'Efficient C/C++ Programming')
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, September 14, 1999 5:12 PM
> To: [EMAIL PROTECTED]
> Subject: [newbie] gcc not working
>
>
> Hello,
>
> I've just installed 6.0, and gotten almost everything working well.
> But when I tried to compile my "Hello World" program to see if gcc is
> working, I got a weird error saying something like "cannot
> find file or dir",
> and I know this is not the case. The file is there. A simple
> gcc w/ no args
> works, I get the "no file given" error. Anyone had similar
> problems or know
> how to fix this?
>
> Thanks,
> Scott
>