LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to run C++ compiled program (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-c-compiled-program-160093/)

legend1079 03-20-2004 12:46 AM

how to run C++ compiled program
 
please if there is some one that can tell
me the way to run the compiled c or c++ program
from console
when i enter name of compiled program
it is said as
Bash: unknown command
help me please

tvn 03-20-2004 01:06 AM

g++ filename.cc -o filename
./filename or enter the full path of the compiled file such as /home/you/where_you_compiled_it_to/filename


You can find the answer to this question easily using google or linux documents project.

michaelk 03-20-2004 06:40 AM

BTW
./ means current working directory. Unlike windows BASH does not search the current working directory before searching the path for a command.

To view path environment:
echo $PATH


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