This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

RE: Problems getting array elements in CNI


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
> 
> --------------------------------------------------------------
> ----------------
> 

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