View Full Version : gcc + running an executable

March 8th, 2012, 06:33 AM
Here is a novice question.

I wrote a small c program (Test.c) and used gcc to compile it. An executable called "test" was created. But when I tried to execute it (by writing "test" and pressing enter) nothing happened (I got message "Command not found) when I tried to run it. I have allowed the file to be used as an executable. Also clicking the executable in file management causes nothing to happen. What goes wrong?

March 8th, 2012, 06:38 AM
If you are doing something like this:

gcc test.c -o test
you can do this to run it:


March 8th, 2012, 06:48 AM
Thank you, it works.