This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problem with main routine during linking
- To: Martin Kahlert <martin dot kahlert at infineon dot com>
- Subject: Re: Problem with main routine during linking
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Mon, 7 May 2001 11:52:34 -0400 (EDT)
- cc: java at gcc dot gnu dot org
On Mon, 7 May 2001, Martin Kahlert wrote:
> The problem is that gcj puts the main function (i.e. the object containing
> the main routine) after all user command line options in the link step.
> I would propose to put it in front of it as the first object (after crtbegin
> and friends).
>
> So you can link to libraries containing main function dummies (like
> g77's libg2c).
There's another good reason to change the --main link order... link
commands with no objects, i.e.:
gcj --main=Exam -lexam
fail if `libexam.a' is a static archive.
Jeff