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]

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


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