gcj && libjava for cygwin

Jeff Sturm jsturm@one-point.com
Thu Apr 19 17:29:00 GMT 2001


On Thu, 19 Apr 2001, Billinghurst, David (CRTS) wrote:
> ./.libs/libgcj.a(natClass.o)(.text$_ZN4java4lang5ClassC1Ev+0x0): multiple
> definition of `java::lang::Class::Class()'
> ./.libs/libgcj.a(Class.o)(.text+0x3a0): first defined here
> collect2: ld returned 1 exit status
> make[2]: *** [jv-convert] Error 1
>  
> Any ideas?

More fun with weak symbols, I think.  Does this help?

Index: java/lang/Class.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/Class.h,v
retrieving revision 1.31
diff -u -p -r1.31 Class.h
--- Class.h     2001/01/17 10:22:32     1.31
+++ Class.h     2001/04/20 00:27:23
@@ -197,7 +197,7 @@ public:
   // finalization
   void finalize ();

-  Class () {};
+  Class ();

   // This constructor is used to create Class object for the primitive
   // types. See prims.cc.




More information about the Java mailing list