native static inner class methods?
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Tue Dec 4 16:23:00 GMT 2001
Adam Megacz wrote:
>Hrm, why won't this work? (gcj-3.1)
>>megacz@curry$ gcj foo.cc foo.java --main=foo
>>/tmp/cc4vv1pE.o: In function `foo__U24_bar::foo__U24_bar()':
>/home/megacz/foo.java:1: undefined reference to `foo__U24_bar::foo()'
>/home/megacz/foo.java:1: undefined reference to `foo__U24_bar::foo()'
>collect2: ld returned 1 exit status
>
Its because gcj and g++ disagree on how the "$" symbol should be
mangled. IIRC, the C++ guys agreed that it should do what gcj does
(mangle it to a unicode symbol), but they never implemented it.
regards
Bryce.
More information about the Java
mailing list