Re: Commands to run a C++ program

Matthew Nicholson <[email protected]> Mon, 11 Sep 2006 10:18:19 -0500
Newsgroups gmane.comp.gcc.cgicc.general
Message-ID <[email protected]>
Generally, you run the 'c++' command to compile a c++ program, and then 
just run the compiled executable.  If you are using gcc, you can use the 
g++ command.

g++ -o test test.cc     # compile test
./test                  # execute test

U SAMANTA wrote:
> Hi,
> 
> What are the commands to compile and then run a C++ program?  Thanks 
> 
> Urmila 

-- 
Matthew Nicholson
matt-land.com