Problem with main routine during linking
Jeff Sturm
jsturm@one-point.com
Mon May 7 09:01:00 GMT 2001
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
More information about the Java
mailing list