This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Segfault with trivial SWT snippet
On Tue, 2007-11-13 at 11:33 +0000, Andrew Haley wrote:
> > Anyone have any ideas for how I might debug this situation further?
> >
> > If anyone could try to replicate this, then success or failure reports
> > from that might be very useful.
>
> Try compiling with -findirect-dispatch -fpic.
And since swt uses JNI for its native bindings, you might also need to
add -fjni.
Cheers,
Mark