delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/09/11:11:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <374103B51B3AD311ACDA0008C7E62E000106C146@smspap42m.rfc.com>
From: "Gust, Micron" <MGust AT RFC DOT com>
To: "Cygwin AT Sourceware DOT Cygnus DOT Com" <cygwin AT sourceware DOT cygnus DOT com>
Subject: GCJ Error: undefined reference to `InterlockedIncrement AT 4'
Date: Wed, 9 Feb 2000 10:14:59 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

I am having problems getting a very simple "Hello World" java class to
compile with gcj.

When I try to compile the class file it gives me the error message below.
I've also tried compiling the .java file and I got the same error. Can
anyone tell me what I'm doing wrong? 

FYI: I have installed:
1) The full version of Cygwin B20.1
2) GCC version 2.95.2 for Cygwin B20.x
3) Libgcj for Win32

Error Messages:
----------------------------------------------------------------------------
-----------------
bash-2.02$ gcj -mno-cygwin --main=Hello -o Hello Hello.class
/usr/local/lib/libgccgcj.a(_eh.o): In function `eh_context_initialize':
/usr/local/build/gcc-2.95.2/gcc/../../../src/gcc-2.95.2/gcc/libgcc2.c(.text+
0x142): undefined reference to `InterlockedIncrement AT 4'
/usr/local/lib/libgccgcj.a(frame.o): In function `init_object_mutex_once':
/usr/local/build/gcc-2.95.2/gcc/../../../src/gcc-2.95.2/gcc/frame.c(.text+0x
4a): undefined reference to `InterlockedIncrement AT 4'
collect2: ld returned 1 exit status
----------------------------------------------------------------------------
-----------------

Hello.java
--------------------------------------------------
public class Hello {

    public static void main (String[] args) {
        System.out.println ("Hello World");
    }
}
--------------------------------------------------

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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