The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Need some help compiling my first game in to android
Shmendrich


Joined: 25 Jun 2015
Posts: 6
So im trying to compile with the NDK tools an SDL project and I got stuck after clearing some other compiling errors:

Code:
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_assert.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_error.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_hints.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_log.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_audio.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_audiocvt.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_audiodev.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_audiotypecvt.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_mixer.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_wave.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_androidaudio.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_dummyaudio.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_atomic.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile arm    : SDL2 <= SDL_spinlock.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_android.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_cpuinfo.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_clipboardevents.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_dropevents.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_events.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_gesture.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_keyboard.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_mouse.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_quit.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_touch.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_windowevents.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_rwops.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_haptic.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_syshaptic.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_gamecontroller.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_joystick.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_sysjoystick.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_sysloadso.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_power.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_syspower.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_render.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_yuv_mmx.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_yuv_sw.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_render_gles2.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_shaders_gles2.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_render_gles.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blendfillrect.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blendline.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blendpoint.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_drawline.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_drawpoint.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_render_sw.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_rotate.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_getenv.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_iconv.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_malloc.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_qsort.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_stdlib.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_string.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_thread.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_syscond.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_sysmutex.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_syssem.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_systhread.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_systls.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_timer.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_systimer.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blit_0.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blit_1.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blit_A.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blit_auto.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blit.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blit_copy.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blit_N.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_blit_slow.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_bmp.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_clipboard.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_fillrect.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_pixels.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_rect.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_RLEaccel.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_shape.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_stretch.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_surface.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_video.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_androidclipboard.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_androidevents.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_androidgl.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_androidkeyboard.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_androidtouch.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_androidvideo.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_androidwindow.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] SharedLibrary  : libSDL2.so
[armeabi-v7a] Install        : libSDL2.so => libs/armeabi-v7a/libSDL2.so
[armeabi-v7a] Compile thumb  : ecs <= SDL_android_main.c
cc1: warning: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [enabled by default]
[armeabi-v7a] Compile++ thumb: ecs <= component.cpp
[armeabi-v7a] Compile++ thumb: ecs <= entity.cpp
[armeabi-v7a] Compile++ thumb: ecs <= sys.cpp
In file included from /home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include/bits/c++allocator.h:33:0,
                 from /home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/allocator.h:46,
                 from /home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/string:41,
                 from /home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/locale_classes.h:40,
                 from /home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/ios_base.h:41,
                 from /home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/ios:42,
                 from /home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/ostream:38,
                 from /home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/iostream:39,
                 from /home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/common.h:12,
                 from /home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/sys.h:10,
                 from /home/harlock/Downloads/SDLShipGame/jni/ecs/sys.cpp:9:
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/ext/new_allocator.h: In instantiation of 'struct __gnu_cxx::new_allocator<const long int>':
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/allocator.h:92:11:   required from 'class std::allocator<const long int>'
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/stl_list.h:306:9:   required from 'class std::_List_base<const long int, std::allocator<const long int> >'
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/stl_list.h:438:11:   required from 'class std::list<const long int>'
/home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/sys.h:43:21:   required from here
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/ext/new_allocator.h:93:7: error: 'const _Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::const_reference) const [with _Tp = const long int; __gnu_cxx::new_allocator<_Tp>::const_pointer = const long int*; __gnu_cxx::new_allocator<_Tp>::const_reference = const long int&]' cannot be overloaded
       address(const_reference __x) const _GLIBCXX_NOEXCEPT
       ^
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/ext/new_allocator.h:89:7: error: with '_Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::reference) const [with _Tp = const long int; __gnu_cxx::new_allocator<_Tp>::pointer = const long int*; __gnu_cxx::new_allocator<_Tp>::reference = const long int&]'
       address(reference __x) const _GLIBCXX_NOEXCEPT
       ^
In file included from /home/harlock/Downloads/SDLShipGame/jni/ecs/sys.cpp:10:0:
/home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/world.h: In member function 'void world::delete_entity(entity&)':
/home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/world.h:46:77: error: cannot convert 'std::vector<entity*>::iterator {aka __gnu_cxx::__normal_iterator<entity**, std::vector<entity*> >}' to 'const char*' for argument '1' to 'int remove(const char*)'
          s->entities.erase(remove(s->entities.begin(), s->entities.end(), &e), s->entities.end());
                                                                             ^
/home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/world.h:49:77: error: cannot convert 'std::vector<entity*>::iterator {aka __gnu_cxx::__normal_iterator<entity**, std::vector<entity*> >}' to 'const char*' for argument '1' to 'int remove(const char*)'
       cur_entities.erase(remove(cur_entities.begin(), cur_entities.end(), &e), cur_entities.end());
                                                                             ^
make: *** [/home/harlock/Downloads/SDLShipGame/obj/local/armeabi-v7a/objs/ecs/sys.o] Error 1

This is the compilin error I get, and Im not sure what to make of it.

my application.mk is:

Code:
APP_ABI    := armeabi-v7a
APP_STL    := gnustl_static
APP_CFLAGS := --std=c++11
APP_PLATFORM := android-10


I tried with other C libraries instead of gnustl_static suggested in http://www.kandroid.org/ndk/docs/CPLUSPLUS-SUPPORT.html
but they give me either the same error, or not finding the <random> library. (which I use in one of my modules)
Any help would be appreciated

My application runs normally on SDL2, but I just cant get it compiling with the NDK tools to test in on android devices.
chenqi


Joined: 30 Jun 2015
Posts: 1
Location: Shanghai, China
try this:
Code:

APP_ABI := armeabi-v7a
APP_STL := gnustl_static
APP_CPPFLAGS := -std=c++11 rtti exception
APP_PLATFORM := android-10
Shmendrich


Joined: 25 Jun 2015
Posts: 6
Thanks for your reply! I tried that and with rtti exception I get:
Code:

[armeabi-v7a] Compile thumb  : ecs <= SDL_android_main.c
[armeabi-v7a] Compile++ thumb: ecs <= component.cpp
arm-linux-androideabi-g++: error: rtti: No such file or directory
arm-linux-androideabi-g++: error: exception: No such file or directory
make: *** [/home/harlock/Downloads/SDLShipGame/obj/local/armeabi-v7a/objs/ecs/component.o] Error 1



and without it I get:
Code:

 from /home/harlock/Downloads/SDLShipGame/jni/ecs/sys.cpp:9:
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/ext/new_allocator.h: In instantiation of 'struct __gnu_cxx::new_allocator<const long int>':
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/allocator.h:92:11:   required from 'class std::allocator<const long int>'
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/stl_list.h:306:9:   required from 'class std::_List_base<const long int, std::allocator<const long int> >'
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/bits/stl_list.h:438:11:   required from 'class std::list<const long int>'
/home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/sys.h:43:21:   required from here
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/ext/new_allocator.h:93:7: error: 'const _Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::const_reference) const [with _Tp = const long int; __gnu_cxx::new_allocator<_Tp>::const_pointer = const long int*; __gnu_cxx::new_allocator<_Tp>::const_reference = const long int&]' cannot be overloaded
       address(const_reference __x) const _GLIBCXX_NOEXCEPT
       ^
/home/harlock/Downloads/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include/ext/new_allocator.h:89:7: error: with '_Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::reference) const [with _Tp = const long int; __gnu_cxx::new_allocator<_Tp>::pointer = const long int*; __gnu_cxx::new_allocator<_Tp>::reference = const long int&]'
       address(reference __x) const _GLIBCXX_NOEXCEPT
       ^
In file included from /home/harlock/Downloads/SDLShipGame/jni/ecs/sys.cpp:10:0:
/home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/world.h: In member function 'void world::delete_entity(entity&)':
/home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/world.h:46:77: error: cannot convert 'std::vector<entity*>::iterator {aka __gnu_cxx::__normal_iterator<entity**, std::vector<entity*> >}' to 'const char*' for argument '1' to 'int remove(const char*)'
          s->entities.erase(remove(s->entities.begin(), s->entities.end(), &e), s->entities.end());
                                                                             ^
/home/harlock/Downloads/SDLShipGame/jni/ecs/../SDL2/gameinc/world.h:49:77: error: cannot convert 'std::vector<entity*>::iterator {aka __gnu_cxx::__normal_iterator<entity**, std::vector<entity*> >}' to 'const char*' for argument '1' to 'int remove(const char*)'
       cur_entities.erase(remove(cur_entities.begin(), cur_entities.end(), &e), cur_entities.end());
                                                                             ^
make: *** [/home/harlock/Downloads/SDLShipGame/obj/local/armeabi-v7a/objs/ecs/sys.o] Error 1
[/quote]