iso c++ forbids in-class initialization of non-const static member 'innerAngle'

Create issue
Issue #113 resolved
Iwan Gabovitch created an issue


When compiling git HEAD on win8.1 with ndk r9d, I gett this error:

iso c++ forbids in-class initialization of non-const static member 'innerAngle'

Comments (10)

  1. Alex Szpakowski

    I'm not sure what compilation settings are used right now when compiling LÖVE for Android, but LÖVE 0.10.0 requires the C++11 language as well as the C++11 standard library.

  2. Martin Felis repo owner

    Hrm... I can't replicate this issue on my 14.04 Ubuntu system and a fresh clone. Are you running ndk-build after you have you have updated from the latest git?

    You could try to run ndk-build clean to remove old compiled files.

  3. Former user Account Deleted

    @slime73, That was the problem. I added


    in and it works

  4. Former user Account Deleted

    But now I get this:

    [armeabi] Compile thumb  : SDL2_static <= SDL_android.c
    jni/SDL2-2.0.3/src/core/android/SDL_android.c:90:24: error: function declared 'aapcs' here was previously declared without calling convention
    JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved)
    /home/john/android-ndk-r9c/platforms/android-9/arch-arm/usr/include/jni.h:1147:16: note: previous declaration is here
    JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved);
    1 error generated.
    make: *** [obj/local/armeabi/objs/SDL2_static/src/core/android/SDL_android.o] Error 1
  5. Log in to comment