On Fri, 25 May 2001, Blue Lizard wrote:

> when I ran gcc -v it said the version number and identifier from my
> personal install of a non mdk rpm of it.  This to me is an indication
> that gcc is not provided by gcc-3.0 rpm?

The last parapgrah of the description quoted below says it all. gcc-2.96
is still the primary compiler. Therefore all the tools you used to run
(cpp, gcc, g++, etc.) are still those from the gcc-2.96 package. You need
to explicitely add the "-3.0" suffix or call the gcc driver with
the "-V3.0" option. However, I'd recommend the former solution since the
latter doesn't seem to propagate macros defined at the command line to the
gcc-3.0 tools. I sent a patch for that to Chmouel.

[gbeauchesne@paraplapla gbeauchesne]$ rpm -qi gcc3.0
Name        : gcc3.0                       Relocations: (not relocateable)
Version     : 3.0                               Vendor: MandrakeSoft
Release     : 0.4mdk                        Build Date: ven 25 mai 2001
12:10:12 CEST
Install date: ven 25 mai 2001 19:54:31 CEST      Build Host:
no.mandrakesoft.comGroup       : Development/C                 Source RPM:
gcc3.0-3.0-0.4mdk.src.rpm
Size        : 9468476                          License: GPL
Packager    : Gwenole Beauchesne <[EMAIL PROTECTED]>
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.

If you have multiple versions of GCC installed on your system, you
will have to type "gcc -V3.0" or "gcc-3.0" (without double quotes)
in order to use the GNU C Compiler version 3.0.

[gbeauchesne@paraplapla gbeauchesne]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.96/specs
gcc version 2.96 20000731 (Linux-Mandrake 8.1 2.96-0.52mdk)

[gbeauchesne@paraplapla gbeauchesne]$ gcc-3.0 -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/3.0/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --enable-long-long --enable-cstdio=stdio
--enable-clocale=generic --enable-languages=c,c++,f77,objc,java
--program-suffix=-3.0 --host=i586-mandrake-linux
Thread model: posix
gcc version 3.0 20010521 (Linux Mandrake 8.1 3.0-0.4mdk)



Reply via email to