From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16008 invoked by alias); 7 Nov 2011 06:36:37 -0000 Received: (qmail 15609 invoked by uid 22791); 7 Nov 2011 06:36:35 -0000 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 Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Nov 2011 06:36:22 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RNIoe-0001lL-63 for cygwin@cygwin.com; Mon, 07 Nov 2011 07:36:20 +0100 Received: from p4fc6199e.dip0.t-ipconnect.de ([79.198.25.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Nov 2011 07:36:19 +0100 Received: from philipp.kraus by p4fc6199e.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Nov 2011 07:36:19 +0100 To: cygwin@cygwin.com From: Philipp Kraus Subject: Re: gcj exception compiling Date: Mon, 07 Nov 2011 06:36:00 -0000 Message-ID: References: <3E1FD932-EE66-4151-A2B4-026F1D6FA7F0@flashpixx.de> <1320542893.7860.7.camel@YAAKOV04> <1320631550.7300.11.camel@YAAKOV04> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Unison/2.1.5 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-11/txt/msg00113.txt.bz2 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@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