On Wed, Jun 06, 2001 at 07:30:01AM +0200, Torsten Becker wrote:
Ursprüngliche Nachricht: Ok, I have an easy question. I compiled my hello.c prog.
#include <stdio.h>
int main(void) { printf("hello world \n"); return 0; }
gcc hello.c -o hello
Normaly, I should get an exe file! But when I start it, I get only, that it couldn't found a file. But it's in the dir.. I guess somthing ist wrong with my shell. (bash-2.03)
It looks like you're doing this as root... root doesn't have the current directory in its path, so to run a file in the current directory you have to use the command './progname' or, in your case, './hello' (no quotes). If you are doing this as root, as I think you are, then DON'T. Create another user and use that account. Using root for everyday work is a Bad Thing. Hope that helps, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\