0

Can one of you geniuses out there help me please.
They say that compiling and running hello world is the hardest bit. They're right.
I've got debian on my laptop.
I read a so-called tutorial that reccomended

gcc hw.c

OK. So I get a file called a.out. Allegedly an executable.
Now how do I run it? I type a.out at the command line and get
bash: a.out: command not found

ls tells me that a.out does exist.
gui tells me that it has execute permission for owner, group and others

Any ideas.

4
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by plgriffith
0

That's because commands in the cwd are not in the PATH by default on Linux/Unix.

Type ./a.out Enjoy!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.