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]

multiple definition of `java::lang::String::length()'?



How is this possible?

  /usr/local/gcc/lib/gcc-lib/i686-pc-mingw32/3.1/../../../../i686-pc-mingw32/lib/libgcj.a(String.o): In function `ZN4java4lang6String6lengthEv':
  /home/megacz/branch/bin/i686-pc-mingw32/libjava/../../../gcc/libjava/java/lang/String.java:187: multiple definition of `java::lang::String::length()'
  /home/megacz/xwt/bin-Win32/org/xwt/plat/Win32-nat.o:/usr/local/gcc/include/gcj/cni.h:88: first defined here

cni.h, line 88, is the open-brace of the following code snippet:

  extern inline jsize
  JvGetStringUTFRegion (jstring str, jsize start, jsize len, char *buf)
  {
    return _Jv_GetStringUTFRegion (str, start, len, buf);
  }

Bizarre, huh?

  - a



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