From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Green To: help-gcc@gnu.org Subject: Re: gcj Date: Wed, 27 Oct 1999 21:52:00 -0000 Message-id: References: <7v8jch$2fe$1@mughi.cs.ubc.ca> X-SW-Source: 1999-10/msg00519.html Chris Majewski 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Green To: help-gcc@gnu.org Subject: Re: gcj Date: Sun, 31 Oct 1999 13:57:00 -0000 Message-ID: References: <7v8jch$2fe$1@mughi.cs.ubc.ca> X-SW-Source: 1999-10n/msg00519.html Message-ID: <19991031135700.bbkUtmA2gFbdki608TDY9r5b-ntCibD2FPgpb5DaoAU@z> Chris Majewski 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