Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <33AB9F0F694ED311B5810000C0AAE4F408D4D552@gab200po08.ems.att.com> From: "Fowler, John P, CFCTR" To: cygwin AT cygwin DOT com Subject: HELP Please!!!!! Problem compiling JNI program under g++ Date: Thu, 1 Mar 2001 16:11:26 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Folks, I really could use some help with this soon. For some reason I can not successfully compile a simple little JNI program with g++ because of problems with the jni.h file. When I compile a C++ program I get over 200 of the following error message "jdk1.2.2/include/jni.h:734: parse error before `*'". (see more details below) I suspect this has something to do with limitation on the NT platform but I am new to this environment and have little background to draw on to fix this problem. Please help. Thanks... John 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 -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple