This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcj


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]