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



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