FYI: Problems solved by switching to gcc 3.3 (was RE: Win32 gcj: How to create a shared library and other w32 issues)
Jost Boekemeier
JBoekemeier@inetsoftware.de
Tue Jun 10 16:51:00 GMT 2003
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
More information about the Java
mailing list