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: 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 , AndrewTek 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