[EMAIL PROTECTED] (Gary Simmons) writes:

> 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                                             

The command line is not correct; to compile java sources you
need a few options more; refer to:

http://sourceware.cygnus.com/java/faq.html#4_1

and to the other doc there.

Hope this help

Maurizio

-- 
Maurizio De Cecco
MandrakeSoft            http://www.mandrakesoft.com/

Reply via email to