Re: Commands to run a C++ program

U SAMANTA <[email protected]> Mon, 11 Sep 2006 11:01:10 -0500
Newsgroups gmane.comp.gcc.cgicc.general
Message-ID <[email protected]>
Thanks,

I also went to some tutorial websites and that is what they also said.



----- Original Message -----
From: Matthew Nicholson <[email protected]>
Date: Monday, September 11, 2006 10:18 am
Subject: Re: Commands to run a C++ program

> 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
>