Traditionally, most programs have a version command.  This is normally accessed by -v 
or --version (of course this is for command line programs).  So for example

% g++ -v

(Aside: Most posix or gnu complient applications follow this, and other commands by a 
written convention.  I'm not sure about this exactly, but there is a written 
convention out there somewhere.)

If you would like to determin which g++ you get from the command line try

% which g++

The which command finds the relavent application by traversing the user's current path.

Searching the web for a "UNIX tutorial" or "common UNIX" comands might explain these 
topics in better detail.


Hope I helped,

Big Mike

On Tue, Oct 15, 2002 at 01:03:10AM -0500, John Tucker wrote:
> First off, I am running Mandrake Linux 8.2 and am wanting to know which
> version of G++ I have on my computer.  It seems as though when I go into my
> software manager and look at the installed software it seems to tell me that
> I have gcc-c++ version 2.96 and version 3.04-2.  I guess this just means
> that I have 2 installed versions of gcc on my computer.  That's fine and all
> but when I type "g++ name_of_files_to_compile" at the prompt how do I know
> which version of g++ is actually being used to compile my files?  I guess
> the reason I bring this up is I thought I was running the same version of
> g++ as the ones in the lab but my program I turned in compiles fine on my
> computer but did not compile on the ones in the Linux lab so obviously I am
> not running the same version.
> 
> Also, since version 3.2 is out now I would like to install that.  However,
> all I can seem to find is the .tar.gz files and I was wondering if anyone
> knew of a place where I could get an .rpm or some other type of file I don't
> have to go building, etc. so as to make the install process easier as I've
> never installed software that I've actually had to make and build and what
> not.
> 
> Any help would be greatly appreciated.
> 
> John
> 
> 
> _______________________________________________
> Siglinux mailing list
> [EMAIL PROTECTED]
> http://www.utacm.org/mailman/listinfo/siglinux
_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://www.utacm.org/mailman/listinfo/siglinux

Reply via email to