This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problem with AClass.class
Bryce McKinlay wrote:
>
> Ryszard Kabatek wrote:
>
> >gcj --main=AClass
> >
> Should it be gcj --main=some.package.AClass ?
>
> regards
>
> Bryce.
If I try it (gcj --main=mypackage.AClass) I get:
/tmp/ccjmo6vc.o: In function `main':
/tmp/ccjmo6vc.o(.text+0x1d): undefined reference to `mypackage::AClass::class$'
collect2: ld returned 1 exit status
The reason are the calls of AClass.class.getName();
Regards
--
Ryszard Kabatek