From: William S F. <ws...@fu...> - 2007-05-21 08:24:19
|
patb <cr <at> olympclan.de> writes: > example_wrap.c: In function `void SWIG_JavaThrowException(JNIEnv*, > SWIG_JavaExceptionCodes, const char*)': > example_wrap.c:163: Error: Basic operand of >>-><< has non-pointer-type > >>_Jv_JNIEnv<< > example_wrap.c:164: Error: Basic operand of >>-><< has non-pointer-type > >>_Jv_JNIEnv<< > example_wrap.c:166: Error: Basic operand of >>-><< has non-pointer-type > >>_Jv_JNIEnv<< > ----------- > I think you have generated C JNI code for a C++ program. C JNI code cannot be compiled by a C++ compiler. When you run swig, use the -c++ commandline option to make SWIG generates C++ code. Also try one of the examples, they all work. William |