This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: multiple definitions of 'xxx keyed to...' in egcs-1.1.1


>>>>> Steinar Bang <sb@metis.no>:

>>>>> Steinar Bang <sb@metis.no>:
>> 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.  

[snip!]

> Hm... it suddenly struck me that I've been running with
> --enable-shared, and that this is not a default option, *and* that it
> affects linking.

I unpacked 1.1.1, configured without --enable-shared, compiled with
"make bootstrap", and installed it.

I still get the exact same error messages when linking some of my
shared libs.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]