| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <20020722211956.69365.qmail@web21007.mail.yahoo.com> |
| Date: | Mon, 22 Jul 2002 14:19:56 -0700 (PDT) |
| From: | Nicholas Wourms <nwourms AT yahoo DOT com> |
| Subject: | Re: gcj problems with helloworld |
| To: | cygwin AT cygwin DOT com |
| In-Reply-To: | <20020722204209.47489.qmail@web10107.mail.yahoo.com> |
| MIME-Version: | 1.0 |
--- Sylvain Petreolle <spetreolle AT yahoo DOT fr> wrote:
> Using gcj to compile a simple program gives non-understandable errors:
>
> $ cat PremierProgramme.java
> //Premier programme Java
> class PremierProgramme {
> public static void main (String[] arg) {
> System.out.println("Ca marche!");
> }
> }
>
> $ gcj -c PremierProgramme.java
> $ echo $?
> 0
> $ gcj PremierProgramme.java -o PremierProgramme
Sylvain,
Try:
gcj --main=PremierProgramme -o PremierProgramme PremierProgramme.java
Cheers,
Nicholas
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |