Problem with AClass.class

Ryszard Kabatek Ryszard.Kabatek@softax.pl
Mon Apr 29 01:10:00 GMT 2002


Tom Tromey wrote:
>> >>>>> "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

I compiled under linux (RH 7.1). The file AClass.java is one of the *.java.
The source is pretty large. I cannot post it.
gcj --main=AClass
--classpath=/home/rysio/programming/cvs/brelink_full/progs/gbp/actions /home/rysio/programming/cvs/brelink_full/progs/gbp/libs.jar 
-I /home/rysio/programming/cvs/brelink_full/progs/gbp/actions *.java
Regards
-- 
Ryszard Kabatek
Tel. (Softax) +48 (22) 517 38 31
Tel. kom. (Softax) +48 606 609 363


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /