[ Ubuntu-BD ] *.cpp

shiplu shiplu.net at gmail.com
Fri Jul 4 18:15:23 BST 2008


On Fri, Jul 4, 2008 at 6:58 AM, nasir khan <nasir8891 at gmail.com> wrote:

> i can not run the .cpp files in ubuntu8.04
>
> please help me to solve the problem
>
>
:D
Shaikat,
.cpp files are not executable. they are compilable.

follow the commands bellow. first line compiles the sample.cpp file and
generates sample.out file which is executable. second line just executes the
sample.out file.

$ gcc sample.cpp -o sample.out
$ ./sample.out


-- 
A K M Mokaddim
http://talk.cmyweb.net/
Stop Top Posting !!


More information about the ubuntu-bd mailing list