This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problem with AClass.class
- From: Ryszard Kabatek <Ryszard dot Kabatek at softax dot pl>
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 26 Apr 2002 14:03:05 +0200
- Subject: Re: Problem with AClass.class
- References: <3CC8FD55.CA9FA287@softax.pl> <3CC925E4.1060900@waitaki.otago.ac.nz>
- Reply-to: Ryszard dot Kabatek at softax dot pl
Bryce McKinlay wrote:
>
> Ryszard Kabatek wrote:
>
> >gcj (gcc version 3.1 20020325 (prerelease)) on linux
> >
> >I got a linking error because of using the class member function:
> >AClass.class.getName()
> >
> >/tmp/cc3aa1t7.o: In function `main':
> >/tmp/cc3aa1t7.o(.text+0x1d): undefined reference to `AClass::class$'
> >collect2: ld returned 1 exit status
> >
> >What is wrong?
> >
>
> Given that the undefined reference is in "main", it seems like you
> specified an incorrect --main class, or forgot to link in AClass?
>
> regards
>
> Bryce.
Hm, AClass is the --main class.
--
Ryszard Kabatek
Tel. (Softax) +48 (22) 517 38 31
Tel. kom. (Softax) +48 606 609 363