Weird GCJ/CNI Behaviour

Tom Tromey tromey@redhat.com
Tue Feb 4 17:26:00 GMT 2003


Ranjit> Does it happen on other platforms as well?

Could you submit a bug report for this?
Include your test case.

Do you still have problems if you compile each file to a .o separately?

Weiqi> In the case where there is a link error, the symbols do not match:
Weiqi> [weiqi@gao ranjit]$ nm Foo.o | grep bar
Weiqi>          U _ZN3Foo3barEP6JArrayIPN4java4lang6StringEEPN4java2io4FileE
Weiqi> [weiqi@gao ranjit]$ nm natFooImpl.o | grep bar
Weiqi> 00000000 T _ZN3Foo3barEP6JArrayIPN4java4lang6StringEEPNS1_2io4FileE

I'm guessing there is a gcj mangling bug.
However, someone would need to investigate to be certain.

Tom



More information about the Java mailing list