From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Doenges To: help-gcc@gnu.org Subject: Re: gcj Date: Tue, 30 Nov 1999 23:28:00 -0000 Message-ID: References: <383A1FEC.91ADBFCB@bellatlantic.net> X-SW-Source: 1999-11n/msg00349.html Message-ID: <19991130232800.658n5A8rPBKOPzCMV8e1M9Vyy5qLIj2bIOiB2UJdUrA@z> Ashwin Kapur writes: >The java file compiles into an o file but the compiler >complains about the absence of a main. The code contains a >main. Is there some specific thing I'm supposed to be doing >to compile and like code with gcj. Are there docs on this. try 'gcj --main=EchoClient EchoClient.java -o ...'. Also try to find the file 'Compiling with GCJ' on the Cygnus website (sorry, I don't have the URL handy), which describes all the command line options gcj offers. >Is there some library I'm supposed to link to or something. This is done automatically if you let gcj do the linking. -- ________________________________________________________________________ Dipl.-Ing. Eric Doenges http://www.rcs.ei.tum.de Institute for Real-Time Computer Systems (RCS) fon +49-89-289-23590 Technische Universitaet Muenchen, D-80290 Muenchen fax +49-89-289-23555