How to Compile C++ programs

Jing Su jingsu-26n5VD7DAF2Tm46uYYfjYg at public.gmane.org
Wed Oct 13 16:25:04 UTC 2004


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

have you tried just doing 'gcc fill.cc'?
--
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