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


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


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