delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/12/15:43:41

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Weiqi Gao <weiqigao AT networkusa DOT net>
Subject: Re: JNI multiple String problem
Date: Wed, 12 Mar 2003 14:43:33 -0600
Lines: 22
Message-ID: <b4o64a$om0$1@main.gmane.org>
References: <3E6F0F87 DOT 7ADB59C2 AT hgu DOT mrc DOT ac DOT uk>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030221
X-Accept-Language: en-us, en
In-Reply-To: <3E6F0F87.7ADB59C2@hgu.mrc.ac.uk>

Nicholas Burton wrote:
> 
> I am having a problem with java native interface under Cygwin that I
> don't have under solaris.

The version of GCC that comes with the latest Cygwin setup.exe contains 
GCJ and libgcj, which contains its own Java compiler, JNI headers, and 
runtime libraries.

Try get around the GCJ stuff by using explicit -I, -L and -l command 
line options combined with the -mno-cygwin option:

$ gcc -mno-cygwin -c -I c:/j2sdk1.4.1_01/include -I \
c:/j2sdk1.4.1_01/include/win32 nativ.c

$ gcc -mno-cygwin -shared -L c:/j2sdk1.4.1_01/jre/bin -o cygnativ.dll 
native.o -lwhatever

--
Weiqi Gao
weiqigao AT networkusa DOT net



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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