This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Aug 2005 14:24:40 -0000
- Subject: [Bug other/23569] Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
- References: <20050825230756.23569.ngmlinux@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at physics dot uc dot edu 2005-08-26 14:24 -------
Subject: Re: Building gcc-4.0.1 toolchain for arm-linux fails durring "make"
On Aug 26, 2005, at 10:21 AM, Nathan M wrote:
>> do build it this way: gcj HelloWorld.java --main=HelloWorld -g -o
>> HelloWorld.exe
>
> Still reporting an error, althought slightly different:
>
> ===code=======================================================
> [root@localhost java_xcompile]# /usr/local/bin/arm-linux-gcj
> HelloWorld.java --main=HelloWorld -g -o HelloWorld.exe
> /root/tmp/cc4BfgHh.o: In function `main':
> /root/tmp/ccyhMgPq.i:12: undefined reference to `HelloWorld::class$'
> collect2: ld returned 1 exit status
> ==============================================================
>
> Here's my complete HelloWorld.java source if there's any chance that
> is wrong or needs something special for gcj:
You want --main=MAINCLASS (or in this case HelloWorldApp).
Please read the docs better.
-- pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23569