This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compile JNI with autotools?


>>>>> ">" == W Michael Petullo <mike@flyn.org> writes:

>> I am trying to compile some JNI code using the GNU autotools.
>> Could anyone recommend a simple example Makefile.am?

I don't know of one offhand, but I'd imagine there is one kicking
around out there somewhere :)

>> ./.libs/libnewfmt_ptrnjava.so: undefined reference to `hidden alias for void FmtPtrn::helloWorld()'

This means you forgot to pass '-fjni' to gcj when you compiled the
objects in libnewfmt_ptrnjava.so.

>> # JNI Java Code:
>> libnewfmt_ptrnjava_la_SOURCES = FmtPtrn.java

Try

libnewfmt_ptrnjava_la_GCJFLAGS = -fjni

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]