This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
multiple definitions of 'xxx keyed to...' in egcs-1.1.1
- To: egcs at cygnus dot com
- Subject: multiple definitions of 'xxx keyed to...' in egcs-1.1.1
- From: Steinar Bang <sb at metis dot no>
- Date: 21 Jan 1999 09:36:54 +0100
Platform: linux S.u.S.E. 5.3, egcs 1.1.1
I'm getting messages of the following type:
.obj/debug/exvirtualprice.o: In function `global constructors keyed to list<KMenuElement *, __default_alloc_template<false, 0> >::global destructors keyed to clear(void)':
/home/sb/apps/include/g++/stl_list.h:304: multiple definition of `global constructors keyed to list<KMenuElement *, __default_alloc_template<false, 0> >::global destructors keyed to clear(void)'
.obj/debug/exprimitiveprice.o:/home/sb/apps/include/g++/stl_list.h:304: first defined here
collect2: ld returned 1 exit status
when linking some (not all) of my shared libraries.
I can't remember having seen any of these with egcs 1.0.3.
Searches on Alta Vista for this problem found no meaningful responses,
searches on Deja News for "egcs & multiple & definition & keyed" gave
me two persons with the same problem on linux, in october last year
(and one "article unavailable"), but no responses.
I got a response from one of the two today, and he lost the problem by
rewriting all of the code that used STL. Then the problem
mysteriously went away.
Not a good sign...
I'll isolate a test case if I can.