How to Compile C++ programs

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Oct 13 18:05:43 UTC 2004


On Wed, Oct 13, 2004 at 12:05:23PM -0300, Devin Whalen wrote:
> I am trying to do some C++ programing on Linux, unfortunately I am
> having trouble compiling my "hello world" scripts.  AFAIK, I just have
> to type g++ fill.cc and it will compile...but I don't seem to have g++
> installed.  I thought it is part of the gcc package but I already have
> that installed.  I am running Mandrake 10.1 and I like to just use urpmi
> to install any programs.  If I type urpmi -a g++  I get the message "no
> package named g++" and if I try urpmi -a gcc, I get the message
> "everything is installed".  I just got the book Essential C++ and I want
> to learn it over the weekend...but it will be difficult if I can't get
> my code to run :).  What am I missing?
> 
> Also, does anyone know some good Linux Programming books for C++ and/or
> C?  Also, what about a good editor.  I am thinking along the lines of
> Visual C++ for Windows.  I plan do to most of it just in vi, but just in
> case I get into more complicated projects it might be nice to have a
> program to help with that.
> 
> Thanks for the help.

Well on debian gcc comes from a package like gcc-2.95 or gcc-3.3 and g++
comes from g++-2.95 or g++-3.3 or similar.  They are often packaged
seperately due to the enormous size of c++ support and that gcc works
fine without g++.

I have no idea what name mandrake would have given the package.  Could
be gcc-g++ or gcc-c++ or g++ or g++-version or anything else along those
lines.

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list