This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC Version


"Samuel T. Santos" <soujavatambem at uol dot com dot br> writes:

> What's up! Good night!
> 
> Guys... I recently install gcc version 3.2.2
> but when I type
> 
> gcc -v its show:
> 
> Reading specs from
> /usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2/specs
> Configured with: ../configure --prefix=/usr --libdir=/usr/lib
> --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
> --enable-shared --enable-threads=posix --disable-checking
> --enable-long-long --enable-__cxa_atexit
> --enable-languages=c,c++,ada,f77,objc,java
> --host=i586-mandrake-linux-gnu --with-system-zlib
> Thread model: posix
> gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
> 
> well... my doubt is: my gcc version is 3.2.1? or 3.2.2?

Niether. It is 3.2 . The -1 is a mandrake package version, i.e.,
    version 1 of the gcc 3.2 package.

> cauz when I type g++ or gcj its show in commom
> 
> Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/specs
> Configured with: ./configure  : (reconfigured) ./configure
> Thread model: posix
> gcc version 3.2.2

What does /usr/local/bin/gcc -v show?

Mandrake (and most other linux distros) slices and dices gcc into
    several packages. If you just hit the checkbox for gcc (on install),
    you don't get g++.

I suspect you have gcc 3.2.2 installed under /usr/local, with support
    for all languages, etc that are on by default, and gcc 3.2
    installed (by your linux distro) in /usr, with only the C
    frontend. Further, I guess /usr/bin comes before /usr/local/bin in
    your path. So typing 'gcc' results in /usr/bin/gcc, while 'g++'
    results in /usr/local/bin/g++, because you have no /usr/bin/g++.

[snip]
> gcc its for C isn't?
> g++ its for C++ and gcj its for JAVA, isn't?
> 
> and when I type 
> 
> rpm -qi gcc its show
> 
> Name        : gcc                          Relocations: (not
> relocateable)
> Version     : 3.2                               Vendor: MandrakeSoft
> Release     : 1mdk                          Build Date: Sáb 17 Ago 2002
> 06:53:48 BRT
> Install date: Dom 29 Dez 2002 22:27:19 BRST      Build Host:
> hp6.mandrakesoft.com
> Group       : Development/C                 Source RPM:
> gcc-3.2-1mdk.src.rpm
> Size        : 10973545                         License: GPL
> Packager    : Gwenole Beauchesne <gbeauchesne at mandrakesoft dot com>
> URL         : http://gcc.gnu.org/
> Summary     : GNU Compiler Collection
> Description :
> A compiler aimed at integrating all the optimizations and features
> necessary for a high-performance and stable development environment.
> This package is required for all other GCC compilers, namely C++,
> Fortran 77, Objective C and Java.
[snip]

If you installed gcc-3.2.2 from source, rpm will not be able to find
    it. 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]