On Tue, 16 Aug 2005 20:00:22 -0700, John M. Gabriele wrote:
> --- Anthony Green <green-H+wXaHxf7aLQT0dZR+AlfA@xxxxxxxxxxxxxxxx> wrote:
>
>> On Mon, 2005-08-15 at 19:00 -0700, John M. Gabriele wrote:
>> > [john@localhost ~/dev/java/JOGL_Example]$ ./MyTest
>> > Exception in thread "main" java.lang.LinkageError: unexpected exception
>> during
>> > linking: net.java.games.jogl.GLCapabilities
>>
>> Rebuild your code with -findirect-dispatch and it will work.
>
> Ok. Compiled from .java --> .o with that option and now it does
> the same thing as when I run it via gij.
>
> Which is weird, since the gcj man page has this to say:
>
> | Note that, at present, "-findirect-dispatch" can only be used
> | when compiling .class files. It will not work when compiling
> | from source.
Right. What I think Anthony *meant* was, follow the instructions on this
page: http://gcc.gnu.org/wiki/How%20to%20BC%20compile%20with%20GCJ
--
Robin
|