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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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