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 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Weiqi Gao Subject: Re: JNI multiple String problem Date: Wed, 12 Mar 2003 14:43:33 -0600 Lines: 22 Message-ID: References: <3E6F0F87 DOT 7ADB59C2 AT hgu DOT mrc DOT ac DOT uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/