RE: upgrade problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I suppose I should qualify my statement a little: _C++_ code is not
compatible between older versions of GCC and newer ones.  C code should
still work fine.  However, it looks like you're working with C++ code,
so it still applies...

Cheers,
Lyle

-----Original Message-----
From: Andres Gonzalez [mailto:andres@xxxxxxxxxxxxx] 
Sent: Monday, February 09, 2004 1:46 PM
To: lrtaylor; gcc-help@xxxxxxxxxxx
Subject: RE: upgrade problem

Lyle,

Thanks for the reply. I was not aware of
the incompatibility between
binaries produced with versions of gcc
prior to 3.2 and newer versions.
Knowing this makes it easier to deal
with going forward.

Thanks again,

-Andres



-----Original Message-----
From: lrtaylor@xxxxxxxxxx
[mailto:lrtaylor@xxxxxxxxxx]
Sent: Monday, February 09, 2004 2:45 PM
To: andres@xxxxxxxxxxxxx;
gcc-help@xxxxxxxxxxx
Subject: RE: upgrade problem


Andres,

RedHat didn't screw up the install.
Rather, the -V option is deprecated
and is not supported in recent versions
of GCC.  If you are trying to
link code built with the new compiler
with libraries built with the old
compiler, you're not going to have any
luck.  Newer versions of GCC are
not compatible with binaries produced
with versions of GCC prior to GCC
3.2.

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx
[mailto:gcc-help-owner@xxxxxxxxxxx] On
Behalf Of Andres Gonzalez
Sent: Wednesday, February 04, 2004 10:49
AM
To: gcc-help@xxxxxxxxxxx
Subject: upgrade problem

Hi,

I recently upgraded my workstation from
Red Hat 7.2 to Red Hat 9.
I am now having a problem with code that
compiled just fine under
gcc 2.96 but now does not compile under
gcc 3.2.2.

I have tried the -V option but
apparently the upgrade of Red Hat 9
screwed up the former system so that
using the "-V 2.96" option
complains that it cannot find the
cc1plus file.

The code compiles fine but I get tons of
link errors that are all
about "new" and "delete" operators. They
are all in the form of:

.....undefined reference to 'operator
delete[](void*)'
.....undefined reference to 'operator
new(unsigned)'

Do I have to specifically link with a
special library just to get
this code to link properly?

Thanks for any help you can provide. I
have looked through the
man pages and the online documentation
but came up clueless.

-Andres


----------------------
Andres C. Gonzalez III
Agora Labs, Inc.
(732) 212-8500
gonzo@xxxxxxxxxxxxx






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux