This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Arguments to native functions (?) [a bit long]
- To: Simon Gornall <simon@unique-id.com>
- Subject: Re: Arguments to native functions (?) [a bit long]
- From: Tom Tromey <tromey@cygnus.com>
- Date: Mon, 28 Jun 1999 09:28:24 -0700
- Cc: java discuss <java-discuss@sourceware.cygnus.com>
- References: <37779637.F13124E1@unique-id.com>
>>>>> "Simon" == Simon Gornall <simon@unique-id.com> writes:
Simon> Anyway, if I call a native function with more than 3 arguments
Simon> I get a compile-time error saying the linker can't find the
Simon> native function.
I see this too. (And, Andrew, using -fvtable-thunks doesn't help.)
Here is what I see when I run nm on your failing test (modified to
have 4 arguments and not 5):
creche. nm nTest.o | grep calltest
00000000 T calltest__4testPQ34java4lang6StringiT1T1
creche. nm test.o | grep calltest
00000096 d _Utf7calltest
U calltest__4testPQ34java4lang6StringiN21
To me it looks like there is some kind of bug in name mangling.
Tom