Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 To: cygwin AT cygwin DOT com From: "Alex Vinokur" Subject: Re: undefined reference to `_WinMain AT 16' Date: Sun, 20 Jun 2004 10:02:32 +0300 Lines: 48 Message-ID: References: X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: 82.166.217.163 X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 "Alex Vinokur" wrote in message news:cb3b93$3ef$1 AT sea DOT gmane DOT org... > ==================== > Windows 2000 > CYGWIN_NT-5.0 1.5.10-3 (0.116/4/2) > gcj (GCC) 3.3.1 (cygming special) > ==================== > > --------- Java code : File HelloWorld.java : BEGIN --------- > public class HelloWorld > { > public static void main (String[] args) > { > System.out.println("Hello, world!\n"); > } > } > --------- Java code : File HelloWorld.java : END ----------- > > > --------- Compilation : BEGIN --------- > > $ gcj HelloWorld.java > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a(libcmain.o)(.text+0x7a): > undefined reference to `_WinMain AT 16' > collect2: ld returned 1 exit status > > --------- Compilation : END ----------- > > > What is wrong? > $ gcj --main=HelloWorld HelloWorld.java // No problem Is there any special mailing-list/newsgroup to discuss gcc-java? Thanks, -- Alex Vinokur http://mathforum.org/library/view/10978.html http://sourceforge.net/users/alexvn -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/