From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10359 invoked by alias); 29 Apr 2002 15:25:34 -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 10343 invoked from network); 29 Apr 2002 15:25:32 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 29 Apr 2002 15:25:32 -0000 Received: from creche.cygnus.com (ta0197.peakpeak.com [204.144.244.197] (may be forged)) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id JAA06592; Mon, 29 Apr 2002 09:12:09 -0600 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id JAA18710; Mon, 29 Apr 2002 09:19:41 -0600 To: Ryszard.Kabatek@softax.pl 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> <3CCCE709.D33E1A93@softax.pl> <3CCD0094.5090706@waitaki.otago.ac.nz> <3CCD0E87.B13149C8@softax.pl> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: TONY RANDALL! Is YOUR life a PATIO of FUN?? Date: Mon, 29 Apr 2002 13:14:00 -0000 In-Reply-To: Ryszard Kabatek's message of "Mon, 29 Apr 2002 11:12:39 +0200" Message-ID: <87y9f6fs6r.fsf@creche.redhat.com> X-SW-Source: 2002-04/txt/msg00404.txt.bz2 >>>>> "Ryszard" == Ryszard Kabatek writes: Bryce> Should it be gcj --main=some.package.AClass ? Ryszard> If I try it (gcj --main=mypackage.AClass) I get: Ryszard> /tmp/ccjmo6vc.o: In function `main': Ryszard> /tmp/ccjmo6vc.o(.text+0x1d): undefined reference to `mypackage::AClass::class$' Ryszard> The reason are the calls of AClass.class.getName(); I doubt it. Nobody else has problems with this feature. I assume you are compiling and linking in AClass? And that the fully qualified class name is "mypackage.AClass"? One thing you could do is run "nm AClass.o | c++filt" and then send the output. That might help us. Tom