executing file
I am just new, i am using mandrake 10, and have started writing some c++ programs. My files compile fine with no errors, however when i try executing the program ive written it just says bash: exe: command not found. I am trying to use a.out to run my file, please tell me how to run my file. Thanks Heaps Beginner
|
Unlike windows, bash only searches the PATH environment not the current working directory for a command. You can either use the entire path or ./ or add the current working directory to the PATH:
/path/to/executable ./ is a short for current working directory i.e. ./executable To add current working directory to your path: http://www.linuxquestions.org/questi...bash_profile+. |
Thanks
Thanks Michealk
I appreciate your help greatly. |
All times are GMT -5. The time now is 07:56 AM. |