I've been getting an error message after trying to run a program I had just compiled.
I used this code saved as "hello.c":
Code:#include <stdio.h> int main(void) { printf("A .c is used to end a C program filename.\n"); return 0; }
I used the command line and used:
gcc hello.c
a.out
This should have compiled the program "hello.c" and then run the program "a.out". It didn't. Instead it gave the error "a.out: command not found". Any ideas?
Thanks.
Bookmarks