This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
HELP Please!!!!! Problem compiling JNI program under g++
- To: cygwin at cygwin dot com
- Subject: HELP Please!!!!! Problem compiling JNI program under g++
- From: "Fowler, John P, CFCTR" <jpfowler at att dot com>
- Date: Thu, 1 Mar 2001 16:11:26 -0500
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