This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcj
- To: help-gcc at gnu dot org
- Subject: Re: gcj
- From: Anthony Green <green at fencer dot cygnus dot com>
- Date: 27 Oct 1999 21:37:19 -0700
- Newsgroups: gnu.gcc.help
- Organization: Cygnus Solutions
- References: <7v8jch$2fe$1@mughi.cs.ubc.ca>
- Xref: wodc7nx0 gnu.gcc.help:1632
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