delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/30/14:27:40

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Java JNI problems with GCC???
Date: 30 Sep 1999 17:31:43 GMT
Organization: Center for X-ray Lithography, UW-Madison
Lines: 20
Message-ID: <7t06pv$keu$1@news.doit.wisc.edu>
References: <g_KI3.477$J83 DOT 44385 AT typhoon-la DOT pbi DOT net>
NNTP-Posting-Host: modi.xraylith.wisc.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <g_KI3.477$J83 DOT 44385 AT typhoon-la DOT pbi DOT net>,
AndrewTek <andrewtek1 AT excite DOT com> wrote:
>Hi all,
>
>Thanks for helping me to get my dll-creation programs set up. And thanks for
>helping me to get my include paths to work. Now I have a new problem which I
>hope is not off-topic. I get all kinds of wierd warnings from gcc when I try
>to include the jdk1.1.6/include folder.

Java JNI headers use a MSVC specific extension, namely __int64 type. GCC
uses `long long'. You can simply patch the JNI header to work with either
GCC or MSVC. 

See http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ for some Java
JNI examples with GCC (works with Cygwin or Mingw32, I don't know if it
will with RSXNTDJ or not).

Regards,
Mumit

- Raw text -


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