readthefuckingmanual.net

[SOLVED] undefined reference to `hidden alias for

Error added: 2009-07-05T21:42:06Z

1 people waiting for the answer...

2 answers found.

Answer 1379 (100.0% helpful)

Add -fjni to the gcj command line.
From the manual:


`-fjni\'
     With `gcj\' there are two options for writing native methods: CNI
     and JNI.  By default `gcj\' assumes you are using CNI.  If you are
     compiling a class with native methods, and these methods are
     implemented using JNI, then you must use `-fjni\'.  This option
     causes `gcj\' to generate stubs which will invoke the underlying JNI
     methods.
Permalink

Answer 1029 (0.0% helpful)

it\'s a problem with objects compilation on the .so that is referred to this \'undefined reference\'.
You must look at your gcj (or other compiler) man. And try to recompile it correctly.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: