LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running compiled c++ programs in Fedora (http://www.linuxquestions.org/questions/linux-newbie-8/running-compiled-c-programs-in-fedora-296692/)

klmbrt 03-02-2005 09:19 AM

running compiled c++ programs in Fedora
 
Whenever I compile my programs and finally get no errors I see the a.out file and when I type a.out I get this error message:
-bash: a.out: command not found
WHY?

Freyr 03-02-2005 09:24 AM

To execute a compiled file from a bash prompt you need to use the command

./a.out

michaelk 03-02-2005 09:54 AM

linux only uses the path environment to search for commands.

./ is a shortcut for the current working directory.


All times are GMT -5. The time now is 03:59 AM.