"multiple definition" errors
Bryce McKinlay
bryce@albatross.co.nz
Sat Apr 1 00:00:00 GMT 2000
Paul Reilly wrote:
> I'm getting this towards the end of my libgcj compile and I'm not
> quite sure what make of these error messages:
> /disk2/devel/libgcj/objdir/i686-pc-linux-gnu/libjava/../../../libjava/gcj/array.h(.data+0x0): multiple definition of `java::lang::Object virtual table'
> java/lang/Object.lo:/disk2/devel/libgcj/objdir/i686-pc-linux-gnu/libjava/../../../libjava/java/lang/Object.java:50: first defined here
> /usr/bin/ld: Warning: size of symbol `java::lang::Object virtual table' changed from 12 to 28 in java/lang/natObject.lo
> collect2: ld returned 1 exit status
>
> Anyone seen these before?
It looks like your build may be picking up conflicting versions of "gcj" and "c++". This can happen if you install a new gcc somewhere, but still have an
older one on your PATH somewhere that doesn't have "gcj". Modify your path to make sure that the gcc/c++ frontend commands are running from the same
place.
regards
[ bryce ]
More information about the Java
mailing list