This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: native static inner class methods?
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: Wed, 05 Dec 2001 13:24:45 +1300
- Subject: Re: native static inner class methods?
- References: <86snaqh6g0.fsf@megacz.com>
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.