This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Mingw32 gcj & CNI
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: Guironnet Fabien <fg dot java at free dot fr>
- Cc: GCJ <java at gcc dot gnu dot org>
- Date: Fri, 27 Aug 2004 17:28:28 -0400
- Subject: Re: Mingw32 gcj & CNI
- References: <412FA2F9.3090607@free.fr>
Guironnet Fabien wrote:
Hello,
I've build 2 cross-compilers for win32 (gcc 3.4.2 (20040709) et 3.5.0
(20040822)).
If I try :
mingw32-g++ -c test.cc -I/usr/share/gcc3.5.0-cross/include/
mingw32-gcj -o text.exe test.o
the compilation works fine but the last command gives :
/usr/share/gcc3.5.0-cross/lib/gcc/mingw32/3.5.0/../../../../mingw32/lib/libgcj.a(win32-threads.o)(.text+0x359):
In function
`_Z15_Jv_ThreadStartPN4java4lang6ThreadEP12_Jv_Thread_tPFvS2_E':
/mnt/share/tmp/gcc-cross/work3.5.0-20040822/gcc.tmp/gcc.src/libjava/win32-threads.cc:382:
undefined reference to `_GC_CreateThread@24'
Try a cvs update. This should be fixed by:
2004-08-23 Bryce McKinlay <mckinlay@redhat.com>
* win32_threads.c: Move GC_WIN32_THREADS check after gc_priv.h
include.
Reported by Danny Smith.
Bryce