Jump to content
  • Advertisement
Sign in to follow this  
mussul

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

This topic is 4850 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!