This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj flags
"Boehm, Hans" <hans_boehm@hp.com> writes:
> 2) Is there a reason that --main is not implied if the linker is invoked to
> generate an executable, and there is a single filename argument? As far as
> I can tell, that's a pretty natural thing to type (I still do it regularly).
> In the case of more than one file can't it just say "missing --main flag"?
> I still forget the --main regularly when I'm running small tests. And the
> current semantics of "fail in the linker" never seem to be what I meant :-)
I guess we need to decide what to do about applications that have a
C/C++ main, and use the (future) invocation interface to start up Java.
Should they use the gcj or the g++ command?
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/