Bash File not found, What am I doing wrong?
I'm trying to run a really simple C++ program in red hat. After writing the program I compile it using the the g++ command (Literally I type "g++ program1.cpp"
If I run an ls in command line after that I can see the new file "a.out" highlighted in red.
So I try to run it by typing "a.out" and I get an error stating "bash: a.out :command not found".
Am I doing something wrong with my syntax to run this program?
Thanks for your help!
|