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]

Re: Problem with AClass.class


>>>>> "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


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