Problem with AClass.class
Tom Tromey
tromey@redhat.com
Fri Apr 26 10:09:00 GMT 2002
>>>>> "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
More information about the Java
mailing list