For reasons given at
Android gcc sysroot and linker for compiling NDK projects on Ubuntu, I am compiling my Android NDK project with arm-linux-gnueabi-gcc
. There are no problems when compiling with no Android-NDK-specific includes, but now to include jni.h
,
arm-linux-gnueabi-gcc -static -o main.exe main.c -I'path/to/native_app_glue' -I'/path/to/android-14/arch-arm/usr/include'
I get some cryptic error undefined reference to __sF
.
Does anyone know what could be wrong or has anyone gotten Android NDK projects with jni.h
to successfully compile with a standalone toolchain like this?