I have ntoiced a problem with the gcj package... this problem occurs when
I compile gcj myself as well. 

I wrote a simple hello world program, but gcj gives me the following
errors when i try to compile: 

<Sun Mar 26 00:40:17> [darshu@midnight darshu]$ gcj -o hello hello.java
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status                                             

I have attached the source code... the source works fine with any of the
java bytecode compilers, but simply not with gcj.

-Darshu

class hello
{
        public static void main(String args[])
        {
                System.out.println("Hello World");
        }
}

Reply via email to