« Return to Thread: Trouble compiling swt.jar

Re: Trouble compiling swt.jar

by Andrew Haley :: Rate this Message:

Reply to Author | View in Thread

Ranjit Mathew writes:
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA1
 >
 > Ryan wrote:
 > > gcj -c swt.jar
 > > I get several verification errors:
 >
 > [...]
 >
 > > The version of gcj in use is:
 > > $ gcj --version
 > > gcj.exe (GCC) 4.0.2
 > >
 > > Which I found on the thisiscool.com site.  I'm running Windows XP SP2
 > > with cygwin.  Anybody have any ideas what I'm doing wrong?
 >
 > The bytecode verifier used in this version of GCJ is known
 > to have many problems. You can either wait for 4.0.3 (or
 > 4.1) or try a recent snapshot of either of these branches,
 > where we have moved to a better bytecode verifier.

Simply build with -findirect-dispatch.  That should do the trick.

Andrew.

 « Return to Thread: Trouble compiling swt.jar