This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libgcj.dll on MinGW
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: tj at laurenzo dot org
- Cc: java at gcc dot gnu dot org
- Date: Thu, 25 Aug 2005 18:46:35 -0500
- Subject: Re: libgcj.dll on MinGW
- Reply-to: gnustuff at thisiscool dot com
Hi All,
>In the installation, some things are working and others aren't. I
>have used gij linked against the dll to run trivial programs. It also
>seems that jv-scan works. The other EXE's in the bin directory throw
>access-violations.
Here is an two-second analysis I did on building libgcj
as a DLL on Windows for 3.4:
http://gcc.gnu.org/ml/java-patches/2003-q4/msg00363.html
There are MinGW-local patches which allow exceptions
to be thrown across DLL boundaries. These are not currently
in the official FSF tree. I think Danny Smith mentioned that
there could be licensing issues involved. Danny Smith's patch
is currently in my 3.4 build:
http://www.thisiscool.com/gcc_mingw.htm
...but not in my 4.0 one, which is why I didn't do a libgcj.dll for
my 4.0 build. As far as I know, Danny never prepared a
"exceptions across boundaries patch" for 4.0 or the current
4.1 tree.
Without such functionality, any exception thrown in libgcj.dll
will segfault the application, which means such a libgcj.dll would
only be suitable for toy applications....
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/