This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: "multiple definition" errors
- To: preilly at allaire dot com
- Subject: Re: "multiple definition" errors
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Fri, 14 Jan 2000 10:50:13 +1300
- CC: java-discuss at sourceware dot cygnus dot com
- References: <199912271559.KAA26476@gsxr.allaire.com>
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 ]