This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: multiple definition of __mingwthr_key_dtor
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: fabioroger at gmail dot com, GCJ <java at gcc dot gnu dot org>
- Date: Mon, 21 Feb 2005 21:07:16 +1300
- Subject: Re: multiple definition of __mingwthr_key_dtor
- References: <000701c51565$615e5720$164861cb@DANNY> <4219825C.6090304@gmail.com>
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
Ranjit Mathew wrote:
> Danny Smith wrote:
>> This is not the best solution, but to get rid of the multiple definition
>> errors when linking in C++ objects, link with -lgcj -lstdc++ (in that
>> order). This will bring in the libgcj:win32.cc definitions of the
>> symbols. The problem with this workaround is that it means your C++
>> module(s) will leak memory if they create threads, since they will be
>> using libgcj's bogus definition of __mingwthr_key_dtor.
>>
>> Really this should be reported as a bug if one for this problem doesn't
>> already exist.
>
> I hope you have seen:
>
> http://gcc.gnu.org/ml/java/2002-03/msg00082.html
>
> and related messages.
Yes, I remember that and when Adam asked the mingw group "does any see any
problems?" I raised the issue about C++ modules then on mingw-devlpr list
(http://sourceforge.net/mailarchive/forum.php?thread_id=541993&forum_id=5123.
That was my contribution to the "consensus".
Danny
Danny
Danny
.
>
> Ranjit.