Problems getting array elements in CNI

Lincoln Spiteri lincoln@st.com
Thu Nov 18 08:57:00 GMT 1999


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