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: native static inner class methods?


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.



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