delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/07/01:36:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_GC
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Philipp Kraus <philipp DOT kraus AT flashpixx DOT de>
Subject: Re: gcj exception compiling
Date: Mon, 7 Nov 2011 07:36:07 +0100
Lines: 24
Message-ID: <j97u8n$vtd$1@dough.gmane.org>
References: <3E1FD932-EE66-4151-A2B4-026F1D6FA7F0 AT flashpixx DOT de> <1320542893 DOT 7860 DOT 7 DOT camel AT YAAKOV04> <j96pu0$t14$1 AT dough DOT gmane DOT org> <1320631550 DOT 7300 DOT 11 DOT camel AT YAAKOV04>
Mime-Version: 1.0
User-Agent: Unison/2.1.5
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On 2011-11-07 03:05:48 +0100, Yaakov (Cygwin/X) said:

> On Sun, 2011-11-06 at 21:16 +0100, Philipp Kraus wrote:
>> If I try to compile a java code with "gcj mysource.java" I get the error:
>> 
>> /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o):(.text+0xa9): 
>> 
>> 
>> undefined reference to `_WinMain AT 16'
>> collect2: ld returned 1 exit status
> 
> http://gcc.gnu.org/java/faq.html#4_1


In a posting earlier I have written, that the class does not have any 
main method, so the
information to setup the --main flag does not help. In my project there 
are only
abstract classes, interface classes and classes without main methods, 
so I would like
to compile the sources to *.class files

Phil



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019