-dlopen self
Jeff Sturm
jsturm@one-point.com
Wed Mar 19 14:41:00 GMT 2003
On 2003年3月19日, Erik Poupaert wrote:
> The example works -- with gcc. But not with gcj. I don't know, am I doing
> something wrong?
I trie your example with the attached Makefile, and it seems to work fine:
[jsturm@suzy tmp]$ ./testjni
Hello from jni
A guess: Maybe your binutils is doing something wrong?
Jeff
-------------- next part --------------
testjni: jni-c-part.o jni-java-part.o
gcj -export-dynamic --main=TestJNI jni-c-part.o jni-java-part.o -o testjni
jni-c-part.o: TestJNI.c TestJNI.h
gcc -c TestJNI.c -o jni-c-part.o
jni-java-part.o: TestJNI.java
gcj -c -fjni TestJNI.java -o jni-java-part.o
TestJNI.h: TestJNI.class
gcjh -jni TestJNI
TestJNI.class: TestJNI.java
gcj -C TestJNI.java
More information about the Java
mailing list