Compiling Assembly For Android
I found an article by Vikram Aggarwal that talks about linking Assembly code into Android's NDK, which even has some example code which shows how to connect the C++ code with Assem
Solution 1:
Looking at the code of the class, it seems like you call the function, but I can't see any declaration of it, so it is not recognized. So you need to have a declaration of the function's prototype before calling it (in the C++ class):
Something like:
intarmFunction(void); // << declarationvoidJava_surreal_quake3_engine_Camera9_nativeGetDirection(JNIEnv* env, jobject thiz){
// snip - snapint result = armFunction(); // << your function call
}
Post a Comment for "Compiling Assembly For Android"