Problem with AClass.class
Tom Tromey
tromey@redhat.com
Mon Apr 29 13:14:00 GMT 2002
>>>>> "Ryszard" == Ryszard Kabatek <Ryszard.Kabatek@softax.pl> writes:
Bryce> Should it be gcj --main=some.package.AClass ?
Ryszard> If I try it (gcj --main=mypackage.AClass) I get:
Ryszard> /tmp/ccjmo6vc.o: In function `main':
Ryszard> /tmp/ccjmo6vc.o(.text+0x1d): undefined reference to `mypackage::AClass::class$'
Ryszard> The reason are the calls of AClass.class.getName();
I doubt it. Nobody else has problems with this feature.
I assume you are compiling and linking in AClass?
And that the fully qualified class name is "mypackage.AClass"?
One thing you could do is run "nm AClass.o | c++filt" and then send
the output. That might help us.
Tom
More information about the Java
mailing list