This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem compiling JNI program under g++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]