delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/01/11:12:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <33AB9F0F694ED311B5810000C0AAE4F408D33B82@gab200po08.ems.att.com>
From: "Fowler, John P, CFCTR" <jpfowler AT att DOT com>
To: cygwin AT cygwin DOT com
Subject: Problem compiling JNI program under g++
Date: Thu, 1 Mar 2001 10:53:06 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

I am trying to setup an environment under Win NT where I can experiment with
C++/JNI programs. When I try to compile the sample C++ program available at
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ with g++ I get a
long list of errors caused by the jni.h file. I made the recommended
changes to the jlong typedef as described at the site referenced above but
when I compile the sample program I get the following error 
everywhere JNICALL is used: 

   jdk1.2.2/include/jni.h:200: parse error before `*'
 
I looked at jni.h and line 200 is:
   jint (JNICALL *GetVersion)(JNIEnv *env);
 
JNICALL is defined as #define JNICALL __stdcall.
 
I tried compiling the application under JDK1.2 and JDK1.3 but I still get
the same error. Any suggestion on what I may be missing??? 
 
Thanks 
John 

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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