How to Compile C++ programs
Devin Whalen
devin-Gq53QDLGkWIleAitJ8REmdBPR1lH4CV8 at public.gmane.org
Wed Oct 13 17:24:06 UTC 2004
On Wed, 2004-10-13 at 14:05 -0400, Lennart Sorensen wrote:
> 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
> --
Thank you Lennart! It was gcc-g++. So all I had to do was urpmi -a
gcc-g++ and everything installed fine and now I can compile my little C+
+ programs. Now I can start learning.
Later
--
Devin Whalen
Programmer
Synaptic Vision Inc
Phone-(416) 539-0801
Fax- (416) 539-8280
1179A King St. West
Toronto, Ontario
Suite 309 M6K 3C5
Home-(416) 653-3982
Take back the Web with FireFox....a browser you can trust
www.getfirefox.com
.-.
/v\ L I N U X
// \\
/( )\
^^-^^
--
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