Hi,

> vito [SMTP:[EMAIL PROTECTED]] asked:
> 
> May i ask you one question? 
> How could I make one executable file???? 
> I make one file and use 
> GCC -o file file.c 
> 
This makes an executable, unless you get a
compile error.

> and I cannot execute the file. 
> 
Before you fiddle with the compiler, you
really should read a book about the shell.

> The error message is the "bash : file :  command not found". 
> Why???? 
> 
Because "." is not in your current path. So,
either do a

        export PATH=$PATH:.

or start your program as

        ./file

The second method is the preferred method.

Another typical luser error is to name test
programs "test" - and then wonder why it
does not seem to do anything :-)

HTH,
Thomas

Reply via email to