Problem with static link with gcc-3.4.2 : typeinfo for ...: discarded in section .gnu.linkonce.r._

Evgenia Abramov aevgenia@iil.intel.com
Thu Dec 2 09:17:00 GMT 2004


Hi,

I use compiler gcc-3.4.2 on EM64T machine.

One of my static compilation ( shared link passed OK) I receive several errors like the following:

typeinfo for UcmNetOcc: discarded in section `.gnu.linkonce.r._ZTI9my_symbol' from /tmp/outdir/libXX.a(X.o)

Where the library /tmp/outdir/libXX.a and also the object X.o contain the following reference to my_symbol:
> nm /tmp/outdir/libXX.a | grep ZTI9my_symbol | c++filt
0000000000000000 V typeinfo for my_symbol

Does anybody know what is wrong here? What does this error message mean?

Additional data on my build environment:
> g++ --version
g++ (GCC) 3.4.2
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

>ld --version
GNU ld version 2.15.90.0.1.1 20040303 (SuSE Linux)
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

> uname -a
Linux itstl904 2.6.5-7.108lxset1-smp #1 SMP Wed Aug 25 13:34:40 UTC 2004 x86_64 x86_64 x86_64 GNU/Linux

Thanks,
Genia



More information about the Gcc-help mailing list