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 Subject: Re: gcj exception compiling Date: Mon, 7 Nov 2011 07:36:07 +0100 Lines: 24 Message-ID: References: <3E1FD932-EE66-4151-A2B4-026F1D6FA7F0 AT flashpixx DOT de> <1320542893 DOT 7860 DOT 7 DOT camel AT YAAKOV04> <1320631550 DOT 7300 DOT 11 DOT camel AT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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