-findirect-dispatch problem
Andrew Haley
aph@redhat.com
Thu Dec 1 12:31:00 GMT 2005
Michael Baranov writes:
> I'm compiling a java application of mine with Mohan Embar's GCC/GCJ
> v.4.0.2 (http://www.thisiscool.com/gcc_mingw.htm)
> The comands are:
>
> gcj -c my.jar -o my.o -fjni -findirect-dispatch
> gcj --main=My -o my.exe my.o -fjni
>
> All goes smoothly, but at runtime it can not find org.w3c.dom.Document
> class and many more alike that.
> It looks like -findirect-dispatch modifies the code to lookup classes
> at runtime AND prevents those classes
> from being linked in (does not notice them during compillation?) All
> those classes it looks for ARE in my libgcj.
-findirect-dispatch doesn't work with static linkage, and I remember
that MinGW doesn't work properly with dynamic linkage. It makes no
sense to use it in this context.
Andrew.
More information about the Java
mailing list