This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problem with AClass.class
>>>>> "Ryszard" == Ryszard Kabatek <Ryszard.Kabatek@softax.pl> writes:
>> >/tmp/cc3aa1t7.o: In function `main':
>> >/tmp/cc3aa1t7.o(.text+0x1d): undefined reference to `AClass::class$'
>> >collect2: ld returned 1 exit status
Bryce> Given that the undefined reference is in "main", it seems like
Bryce> you specified an incorrect --main class, or forgot to link in
Bryce> AClass?
Ryszard> Hm, AClass is the --main class.
Then we need more information. How exactly did you compile your
program? Is it short enough to post here? What platform are you on?
Tom