RE: upgrade problem

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

 



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