From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20728 invoked by alias); 29 Apr 2002 06:24:57 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 20718 invoked from network); 29 Apr 2002 06:24:54 -0000 Received: from unknown (HELO rumcajs.softax.local) (62.89.75.141) by sources.redhat.com with SMTP; 29 Apr 2002 06:24:54 -0000 Received: from softax.pl (IDENT:rysio@localhost [127.0.0.1]) by rumcajs.softax.local (8.11.0/8.11.0) with ESMTP id g3T6OAX02376; Mon, 29 Apr 2002 08:24:13 +0200 Message-ID: <3CCCE709.D33E1A93@softax.pl> Date: Mon, 29 Apr 2002 01:10:00 -0000 From: Ryszard Kabatek Reply-To: Ryszard.Kabatek@softax.pl X-Accept-Language: pl, en MIME-Version: 1.0 To: tromey@redhat.com CC: Bryce McKinlay , java@gcc.gnu.org Subject: Re: Problem with AClass.class References: <3CC8FD55.CA9FA287@softax.pl> <3CC925E4.1060900@waitaki.otago.ac.nz> <3CC941F9.FB5A8151@softax.pl> <87k7quqxu2.fsf@creche.redhat.com> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00400.txt.bz2 Tom Tromey wrote: > > >>>>> "Ryszard" == Ryszard Kabatek 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