I think it's "g++" --- Arthur Kao http://arthurkao.com
On Wed, May 20, 2009 at 8:59 PM, Michael John Walters <[email protected]> wrote: > Hello All, > > I know that I have a C compiler on my system because I wrote a simple C > programme called csimple.c and used the command, gcc csimple.c -o > csimple.o and got the object code file csimple.o and when I did the > command ./csimple.o the programme worked beautifully giving me exactly > the result I wanted. > > However, when I tried to compile a simple C++ program with gcc I got a > number of compilation errors indicating that the gcc compiler is not > also a C++ compiler. > > I was wondering what the C++ compiler is called and whether it is easy > to install. If I knew the name of the C++ compiler I could even do an > aptitude search <C++ compiler> where <C++ compiler> is the correct name > of the C++ compiler and I could find out whether it is on my system or > not. If it is on my system but not yet installed, it should be easy to > install. > > I would like to install the C++ compiler so that I could go through a > C++ programming book that my brother gave me. I see that the book my > brother gave me has a lot of programmes I want to write given as > examples. I would then modify my programmes to do exactly what I want, > And the changes from the examples in the book are very minor. The book > my brother gave me is "How to think like a computer scientist" by Allen > B. Downey C++ Version, First Edition. > > So the two things I would like to find out are "What is the name of the > gnome C++ compiler?" and "What is the command to compile a C++ program?" > > Once my C++ program called cplusplussimple.cpp is compiled successfully > as an object code file called cplusplussimple.o the > command ./cplusplusimple.o should run it, if I am not mistaken. > > Please comment on my ramblings. > > Regards, > > Michael Walters - tier two member > > > _______________________________________________ > clug-talk mailing list > [email protected] > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > Mailing List Guidelines (http://clug.ca/ml_guidelines.php) > **Please remove these lines when replying > _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

