Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* typeinfo linking problem
@ 2001-01-11 20:24 l_magnus_j
  2001-01-17  1:29 ` l_magnus_j
  0 siblings, 1 reply; 3+ messages in thread
From: l_magnus_j @ 2001-01-11 20:24 UTC (permalink / raw)


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/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: typeinfo linking problem
  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
  0 siblings, 1 reply; 3+ messages in thread
From: l_magnus_j @ 2001-01-17  1:29 UTC (permalink / raw)


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/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: typeinfo linking problem
  2001-01-17  1:29 ` l_magnus_j
@ 2001-01-17 16:13   ` Jeremie Petit
  0 siblings, 0 replies; 3+ messages in thread
From: Jeremie Petit @ 2001-01-17 16:13 UTC (permalink / raw)


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/



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-01-17 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox