Problems getting array elements in CNI
Glenn Chambers
GChambers@provsol.com
Thu Nov 18 08:59:00 GMT 1999
Compile your C++ code with -fno-rtti.
> -----Original Message-----
> From: Lincoln Spiteri [ mailto:lincoln@st.com ]
> Sent: Thursday, November 18, 1999 12:50 PM
> To: java-discuss@sourceware.cygnus.com
> Subject: Problems getting array elements in CNI
>
>
> Hello,
>
> I am trying to get a pointer to the elements of a java array
> in C++ using
> something like:
>
> jbyte *bytep = elements( myByteArray );
>
> When compiling I get:
>
> natShmSegment.o: In function `JArray<char> type_info function':
> /usr/local/include/gcj/array.h(.gnu.linkonce.t.__tft6JArray1Zc
> +0x10): undefined reference to
> `__JArray type_info function'
> /usr/local/include/gcj/array.h(.gnu.linkonce.t.__tft6JArray1Zc
> +0x18): undefined reference to
> `__JArray type_info node'
> collect2: ld returned 1 exit status
>
> I am using the 16/11/1999 snapshot. Is somthing wrong with my setup.
>
> Regards
>
> Lincoln
> --
> --------------------------------------------------------------
> ----------------
>
> Lincoln Spiteri
>
> Manufacturing Systems
> STMicroelectronics, Malta
>
> e-mail: lincoln.spiteri@st.com
>
> --------------------------------------------------------------
> ----------------
>
More information about the Java
mailing list