Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visual studio 2017 errors #14

Open
mumin16 opened this issue Jun 8, 2018 · 2 comments
Open

visual studio 2017 errors #14

mumin16 opened this issue Jun 8, 2018 · 2 comments

Comments

@mumin16
Copy link

mumin16 commented Jun 8, 2018

1>glfm_platform_android.c(113,16): error : declaration of anonymous class must be a definition
1> jclass class = (*jni)->GetObjectClass(jni, object);
1> ^
1>glfm_platform_android.c(113,9): warning : declaration does not declare anything [-Wmissing-declarations]
1> jclass class = (*jni)->GetObjectClass(jni, object);
1> ^~~~~~
1>glfm_platform_android.c(114,36): error : member reference type 'JNIEnv' (aka '_JNIEnv') is not a pointer; did you mean to use '.'?
1> jmethodID methodID = (*jni)->GetMethodID(jni, class, name, sig);
1> ~~~~~~^~
1> .
1>glfm_platform_android.c(114,55): error : expected expression
1> jmethodID methodID = (*jni)->GetMethodID(jni, class, name, sig);
1> ^
1>glfm_platform_android.c(115,15): error : member reference type 'JNIEnv' (aka '_JNIEnv') is not a pointer; did you mean to use '.'?
1> (*jni)->DeleteLocalRef(jni, class);
1> ~~~~~~^~
1> .
1>glfm_platform_android.c(115,37): error : expected expression
1> (*jni)->DeleteLocalRef(jni, class);
1> ^
1>glfm_platform_android.c(116,16): error : member reference type 'JNIEnv' (aka '_JNIEnv') is not a pointer; did you mean to use '.'?
1> return _glfmWasJavaExceptionThrown() ? NULL : methodID;
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>glfm_platform_android.c(103,12): note: expanded from macro '_glfmWasJavaExceptionThrown'
1> ((*jni)->ExceptionCheck(jni) ? ((*jni)->ExceptionClear(jni), true) : false)
1> ~~~~~~^
1>glfm_platform_android.c(116,16): error : too many arguments to function call, expected 0, have 1
1> return _glfmWasJavaExceptionThrown() ? NULL : methodID;
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>glfm_platform_android.c(103,29): note: expanded from macro '_glfmWasJavaExceptionThrown'
1> ((*jni)->ExceptionCheck(jni) ? ((*jni)->ExceptionClear(jni), true) : false)
1> ~~~~~~~~~~~~~~~~~~~~~~ ^~~
1>C:\Microsoft\AndroidNDK64\android-ndk-r15c\platforms\android-19\arch-x86\usr\include\jni.h(1047,5): note: 'ExceptionCheck' declared here
1> jboolean ExceptionCheck()
1> ^
1>glfm_platform_android.c(116,16): error : member reference type 'JNIEnv' (aka '_JNIEnv') is not a pointer; did you mean to use '.'?
1> return _glfmWasJavaExceptionThrown() ? NULL : methodID;
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>glfm_platform_android.c(103,43): note: expanded from macro '_glfmWasJavaExceptionThrown'
1> ((*jni)->ExceptionCheck(jni) ? ((*jni)->ExceptionClear(jni), true) : false)
1> ~~~~~~^
1>glfm_platform_android.c(116,16): error : too many arguments to function call, expected 0, have 1
1> return _glfmWasJavaExceptionThrown() ? NULL : methodID;
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>glfm_platform_android.c(103,60): note: expanded from macro '_glfmWasJavaExceptionThrown'
1> ((*jni)->ExceptionCheck(jni) ? ((*jni)->ExceptionClear(jni), true) : false)
1> ~~~~~~~~~~~~~~~~~~~~~~ ^~~
1>C:\Microsoft\AndroidNDK64\android-ndk-r15c\platforms\android-19\arch-x86\usr\include\jni.h(551,5): note: 'ExceptionClear' declared here
1> void ExceptionClear()
1> ^
1>glfm_platform_android.c(124,16): error : declaration of anonymous class must be a definition
1> jclass class = (*jni)->GetObjectClass(jni, object);
1> ^
1>glfm_platform_android.c(124,9): warning : declaration does not declare anything [-Wmissing-declarations]
1> jclass class = (*jni)->GetObjectClass(jni, object);
1> ^~~~~~
1>glfm_platform_android.c(125,34): error : member reference type 'JNIEnv' (aka '_JNIEnv') is not a pointer; did you mean to use '.'?
1> jfieldID fieldID = (*jni)->GetFieldID(jni, class, name, sig);
1> ~~~~~~^~
1> .
1>glfm_platform_android.c(125,52): error : expected expression
1> jfieldID fieldID = (*jni)->GetFieldID(jni, class, name, sig);
1> ^
1>glfm_platform_android.c(126,15): error : member reference type 'JNIEnv' (aka '_JNIEnv') is not a pointer; did you mean to use '.'?
1> (*jni)->DeleteLocalRef(jni, class);
1> ~~~~~~^~
1> .
1>glfm_platform_android.c(126,37): error : expected expression
1> (*jni)->DeleteLocalRef(jni, class);
1> ^
1>glfm_platform_android.c(127,16): error : member reference type 'JNIEnv' (aka '_JNIEnv') is not a pointer; did you mean to use '.'?
1> return _glfmWasJavaExceptionThrown() ? NULL : fieldID;
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>glfm_platform_android.c(103,12): note: expanded from macro '_glfmWasJavaExceptionThrown'
1> ((*jni)->ExceptionCheck(jni) ? ((*jni)->ExceptionClear(jni), true) : false)
1> ~~~~~~^
1>glfm_platform_android.c(127,16): error : too many arguments to function call, expected 0, have 1
1> return _glfmWasJavaExceptionThrown() ? NULL : fieldID;
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>glfm_platform_android.c(103,29): note: expanded from macro '_glfmWasJavaExceptionThrown'
1> ((*jni)->ExceptionCheck(jni) ? ((*jni)->ExceptionClear(jni), true) : false)
1> ~~~~~~~~~~~~~~~~~~~~~~ ^~~
1>C:\Microsoft\AndroidNDK64\android-ndk-r15c\platforms\android-19\arch-x86\usr\include\jni.h(1047,5): note: 'ExceptionCheck' declared here
1> jboolean ExceptionCheck()
1> ^
1>glfm_platform_android.c(127,16): error : member reference type 'JNIEnv' (aka '_JNIEnv') is not a pointer; did you mean to use '.'?
1> return _glfmWasJavaExceptionThrown() ? NULL : fieldID;
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>glfm_platform_android.c(103,43): note: expanded from macro '_glfmWasJavaExceptionThrown'
1> ((*jni)->ExceptionCheck(jni) ? ((*jni)->ExceptionClear(jni), true) : false)
1> ~~~~~~^
1>glfm_platform_android.c(127,16): error : too many arguments to function call, expected 0, have 1
1> return _glfmWasJavaExceptionThrown() ? NULL : fieldID;
1> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1>glfm_platform_android.c(103,60): note: expanded from macro '_glfmWasJavaExceptionThrown'
1> ((*jni)->ExceptionCheck(jni) ? ((*jni)->ExceptionClear(jni), true) : false)
1> ~~~~~~~~~~~~~~~~~~~~~~ ^~~
1>C:\Microsoft\AndroidNDK64\android-ndk-r15c\platforms\android-19\arch-x86\usr\include\jni.h(551,5): note: 'ExceptionClear' declared here
1> void ExceptionClear()
1> ^
1>glfm_platform_android.c(133,63): error : declaration of anonymous class must be a definition
1>static jfieldID _glfmGetJavaStaticFieldID(JNIEnv *jni, jclass class, const char *name,

@brackeen
Copy link
Owner

brackeen commented Jun 9, 2018

What platform are you building for?

@mumin16
Copy link
Author

mumin16 commented Jun 9, 2018

min android-19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants