On Fri, 4 Sep 1998, Bumpurs, C. Shane wrote:
> I compiled a simple program
>
> #include <stdio.h>
> void main()
> {
> printf("test");
> }
>
> compiled it via gcc or ecgs and it makes an a.out
> I can rename a.out to whatever I want.
> But when I try to run the thing in the shell it says it can't find it.
> if I use xfm it displays the output in the shell that I run xfm from.
> I'm used to DOS so what am I doing wrong?
>
> Thanks
>
> Shane
>
Try ./a.out
And when you rename it:
mv a.out moof
./moof
. tells the shell to look in the current working directory for the
binary.
-
Drago
[EMAIL PROTECTED]