From: Jeremie Petit <jeremie_petit@geocities.com>
Subject: Re: typeinfo linking problem
Date: Wed, 17 Jan 2001 17:13:31 +0100 [thread overview]
Message-ID: <3A65C4AB.ECA31ACE@geocities.com> (raw)
In-Reply-To: 942sgj$pom$1@nnrp1.deja.com
Hello,
I think this problem is answered in the release notes from the C++
compiler. It's because some of the STD symbols are in a static library at
the moment, so when you link, some of these symbols are added to your .so
files, and when finally linking, the symbols happen to be defined in
several object files. There is a workaround for this problem explained in
the release notes (at least for V6.1), but it's not enough, as I did still
have problems. I had to put the '-hidden xxx' statement exactly between the
object files and the shared libraries I linked them with. Maybe this has
changed a little in more recent versions though.
Regards,
Jeremie Petit
l_magnus_j@my-deja.com wrote:
> Additional information.
>
> This happens when I use STL for the first time, and add the statement:
>
> map<string,int> someMap;
>
> Magnus
>
> In article <93l4q6$njt$1@nnrp1.deja.com>,
> l_magnus_j@my-deja.com wrote:
> > Hello
> >
> > I'm having a linking problem that I have trouble tracking down.
> >
> > /usr/lib/libcxxstd.a(typeinfo.o): std::__vtbl_3std9type_info: multiply
> > defined
> >
> > When I search under /usr/lib I find two typeinfo.o:
> > spi01> grep typeinfo /usr/lib/*
> > /usr/lib/libcxx.a:typeinfo.o 917351990 8887 10 100644
> > 5683 Z
> > /usr/lib/libcxxstd.a:typeinfo.o 904761736 5291 114 100664
> > 6205 Z
> >
> > How can I prevent both of them to be included?
> > I am linking with -L/usr/lib
> >
> > Thanks
> > Magnus
> >
> > Sent via Deja.com
> > http://www.deja.com/
> >
>
> Sent via Deja.com
> http://www.deja.com/
prev parent reply other threads:[~2001-01-17 16:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-11 20:24 typeinfo linking problem l_magnus_j
2001-01-17 1:29 ` l_magnus_j
2001-01-17 16:13 ` Jeremie Petit [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox