I am compiling a C code in linux with the following command:
gcc -o myprogram myprogram.c
If I hadn't given a name to it, I could have simply written the command ./a.out to execute it. But now, to execute the program I just write "myprogram" to the command line, but it says "command not found". What can I do to execute it?
gcc -Wall -g myprogram.c -o myprogramthen learn how to usemakewith yourMakefile. You'll also need to learn how to use thegdbdebugger.