public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Anthony Green <green@fencer.cygnus.com>
To: help-gcc@gnu.org
Subject: Re: gcj
Date: Sun, 31 Oct 1999 13:57:00 -0000	[thread overview]
Message-ID: <rlu2nc14ow.fsf@fencer.cygnus.com> (raw)
Message-ID: <19991031135700.bbkUtmA2gFbdki608TDY9r5b-ntCibD2FPgpb5DaoAU@z> (raw)
In-Reply-To: <7v8jch$2fe$1@mughi.cs.ubc.ca>

Chris Majewski <majewski@cascade.cs.ubc.ca> writes:

> Anyone seen this before? -chris

It's an FAQ item at 
http://sourceware.cygnus.com/java/faq.html

3.1 Why do I get undefined reference to `main' errors?

    When using gcj to link a Java program, you must use the --main=
    option to indicate the class that has the desired main
    method. This is because every Java class can have a main method,
    thus you have to tell gcj which one to use.

AG

-- 
Anthony Green                                               Cygnus Solutions
                                                       Sunnyvale, California

  reply	other threads:[~1999-10-31 13:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-27 21:31 gcj Chris Majewski
1999-10-27 21:52 ` Anthony Green [this message]
1999-10-31 13:57   ` gcj Anthony Green
1999-10-31 13:57 ` gcj Chris Majewski
1999-11-23  5:47 gcj Ashwin Kapur
1999-11-23  5:43 ` gcj Eric Doenges
1999-11-30 23:28   ` gcj Eric Doenges
1999-11-30 23:28 ` gcj Ashwin Kapur
2004-04-23 15:37 gcj Plapp, Phillip
2004-04-23 15:45 gcj bserdar
2004-04-27 15:24 gcj Plapp, Phillip
2009-01-18 17:17 gcj Franklyn Simon
2009-01-18 17:17 gcj Franklyn Simon
     [not found] <200901181717.n0IHHMOM028799@smtp.google.com>
2009-01-20  1:06 ` gcj Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rlu2nc14ow.fsf@fencer.cygnus.com \
    --to=green@fencer.cygnus.com \
    --cc=help-gcc@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).