Re: Trouble compiling swt.jar
Ryan writes:
> Nivox wrote:
>
> >Once upon a time Ryan wrote:
> >
> >
> >>I'm trying to compile swt.jar to swt.o so that I can make a native
> >>Windows executable from Java source that uses SWT (3.1.1) as the
> >>windowing toolkit. When I try:
> >>gcj -c swt.jar
> >>I get several verification errors:
> >>
> >>
> >I've had the same problem. Try to compile this way:
> >
> >
> >gcj -c -fjni -findirect-dispatch swt.jar
> >
> >
> >
>
> Thanks for the replies folks, the indirect-dispatch method seems to
> work fine. I had been avoiding it becuase I thought it required
> database file generation and all that, but I guess that's not the
> case. Not sure why it solves the problem, but good enough for me!
We're sorry all this is so confusing. At the present time there are
simply way too many ways to use gcj. We intend to simplify gcj usage,
but this is all work in progress.
Andrew.