This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
FYI: Problems solved by switching to gcc 3.3 (was RE: Win32 gcj: How to create a shared library and other w32 issues)
- From: Jost Boekemeier <JBoekemeier at inetsoftware dot de>
- To: "'gnustuff at thisiscool dot com'" <gnustuff at thisiscool dot com>, "'java at gcc dot gnu dot org'" <java at gcc dot gnu dot org>
- Date: Tue, 10 Jun 2003 18:51:48 +0200
- Subject: FYI: Problems solved by switching to gcc 3.3 (was RE: Win32 gcj: How to create a shared library and other w32 issues)
Thanks for pointing me to gcc 3.3. I have created a i386-pc-mingw cross
compiler and all of the issues are gone.
I have used the official 3.3 version of gcc and the latest binutils
(binutils-2.13.90-20030111-1.tar.gz; see
http://sourceforge.net/project/showfiles.php?group_id=2435).
You don't need any patches.
There is a small glitch when creating a cross compiler with gcc 3.3. One
file looks for FIONREAD and then calls a method that does not exist in
mingw. One could either remove the code or call the appropriate function
declared in windows.h (I forgot its name)
The other problem was solved by re-declaring JNI_CreateJavaVM and
JNI_GetDefaultJavaVMInitArgs as extern int after including jni.h
Creating dll's (including libgcj itself) also works as described in this
list(using pseudo-reloc).
Jost