This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with main routine during linking




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]