PDA

View Full Version : Problem opening C executable



Redblade3
September 22nd, 2009, 02:01 AM
Recently I started to program in C. However, I wanted to do it here in Ubuntu. I wrote a very simple program that displayed a certain text, compiled it using gcc, but when I tried to run the .out, the terminal gave me:

bash: test.out: command not found

I double and triple-checked the code, recompiled, checked that I was in the correct folder and everything, but the error persists.

I would appreciate any help!

cheers!

lisati
September 22nd, 2009, 02:02 AM
If the name of the compiler output is test.out, try:
./test.out

Redblade3
September 22nd, 2009, 02:20 AM
Excellent, worked like a charm. Thanks a lot!!