This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
multiple definition of __mingwthr_key_dtor
- From: Fabio Roger <fabioroger at gmail dot com>
- To: gcj <java at gcc dot gnu dot org>
- Date: Fri, 18 Feb 2005 00:51:42 +0800
- Subject: multiple definition of __mingwthr_key_dtor
I'm trying to mix c++ and java objects, everything works fine in linux
and cygwin if I link with -lstdc++
but using mingw32 (or cygwin with -mno-cygwin) it comes to this error:
/usr/i686-pc-mingw32/lib/libgcj.a(win32.o)(.text+0x130):win32.cc:
multiple definition of `___mingwthr_key_dtor'
/usr/i686-pc-mingw32/lib/libmingw32.a(mthr_stub.o)(.text
+0x0):mthr_stub.c: first defined here
/usr/i686-pc-mingw32/lib/libgcj.a(win32.o)(.data+0x0):win32.cc: multiple
definition of `__CRT_MT'
/usr/i686-pc-mingw32/lib/libmingw32.a(crtst.o)(.bss+0x0):crtst.c: first
defined here
this seems to be a known error, but I am googling around for 2 days and
found no solution so far.
I believe the same case was caught here
http://gcc.gnu.org/ml/java/2003-12/msg00127.html but it seems got
nowhere.
please, any ideas?
thanks
Fabio Roger