Skip to main content
gamedev.net
🔒 Locked

[java] what's wrong with jni.h ???

Started by mussul 0 replies 700+ views
Original Post
mussul
mussul
Hi I'm trying to compile a project that calls jni.h indirectly (through header that calls other header etc. I can't even find where it is calling jni.h) and it gives me the errors below, my ideas depleted already, I've already tryed other calling conventions, like _stdcall instead _cdecl, etc. nothing solves this problem. And it is funny becouse other project calls jni.h directly from a header included in the project space and it works!!!! I'm using visual 6, as it is not viable to compile with other compilers. --------------------Configuration: Decoder - Win32 Debug-------------------- Compiling... Decoder.cpp C:\j2sdk1.4.2_08\include\jni.h(203) : error C2629: unexpected 'struct _jfieldID * (' C:\j2sdk1.4.2_08\include\jni.h(203) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body C:\j2sdk1.4.2_08\include\jni.h(756) : error C2143: syntax error : missing ')' before '}' C:\j2sdk1.4.2_08\include\jni.h(756) : error C2059: syntax error : ')' C:\j2sdk1.4.2_08\include\jni.h(756) : error C2143: syntax error : missing ')' before '}' C:\j2sdk1.4.2_08\include\jni.h(756) : error C2143: syntax error : missing ';' before '}' C:\j2sdk1.4.2_08\include\jni.h(756) : error C2238: unexpected token(s) preceding ';' C:\j2sdk1.4.2_08\include\jni.h(757) : error C2146: syntax error : missing ';' before identifier 'DefineClass' C:\j2sdk1.4.2_08\include\jni.h(757) : error C2377: 'jclass' : redefinition; typedef cannot be overloaded with any other symbol C:\j2sdk1.4.2_08\include\jni.h(65) : see declaration of 'jclass' C:\j2sdk1.4.2_08\include\jni.h(757) : fatal error C1004: unexpected end of file found Error executing cl.exe. Decoder-D.lib - 10 error(s), 0 warning(s) --------------------------------------------------------------------------- Tonsic
----------------------------Current readings:--> RedBook ..............80%-> Bjarne's C++ ...........1%-----------------------------

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.