From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,3b94889d33e8c187 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-01-17 08:18:52 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!newsgate.tandem.com!mailint03.im.hou.compaq.com!not-for-mail From: Jeremie Petit Newsgroups: comp.unix.tru64 Subject: Re: typeinfo linking problem Date: Wed, 17 Jan 2001 17:13:31 +0100 Organization: Compaq Computer Corp. Message-ID: <3A65C4AB.ECA31ACE@geocities.com> References: <93l4q6$njt$1@nnrp1.deja.com> <942sgj$pom$1@nnrp1.deja.com> NNTP-Posting-Host: 16.188.155.241 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: mailint03.im.hou.compaq.com 979748280 18728 16.188.155.241 (17 Jan 2001 16:18:00 GMT) X-Complaints-To: usenet@mailint03.im.hou.compaq.com NNTP-Posting-Date: 17 Jan 2001 16:18:00 GMT X-Mailer: Mozilla 4.76 [en] (X11; U; OSF1 V5.1 alpha) X-Accept-Language: fr, en Xref: supernews.google.com comp.unix.tru64:1492 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 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/