really, really dumb c question
We're talking very basic here...
I've got a helloworld program written:
#include <stdio.h>
main()
{
printf("hey there\
");
}
and compiled with gcc thusly:
gcc -o hello hello.c
But I get a "command not found" error when I try to execute hello. What completely obvious thing am I missing here??
o'o'a'a
I've got a helloworld program written:
#include <stdio.h>
main()
{
printf("hey there\
");
}
and compiled with gcc thusly:
gcc -o hello hello.c
But I get a "command not found" error when I try to execute hello. What completely obvious thing am I missing here??
o'o'a'a
Comments
<strong>
But I get a "command not found" error when I try to execute hello. What completely obvious thing am I missing here??</strong><hr></blockquote>
It's possible that you don't have your current working directory "." in your $PATH so try starting the program with ./hello instead of just hello
<strong>
It's possible that you don't have your current working directory "." in your $PATH so try starting the program with ./hello instead of just hello</strong><hr></blockquote>
Bingo. Duh.
Anyway, thanks! I really appreciate the help.
o'o'a'a