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]

Re: -findirect-dispatch problem


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.



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