i am trying to use the NDK in eclipse
but when following a tutorial this error pops up and i do not understand where it comes from
this is my .h file
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_example_myproject_MainActivity */
#ifndef _Included_com_example_myproject_MainActivity
#define _Included_com_example_myproject_MainActivity
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_example_myproject_MainActivity
* Method: getMyData
* Signature: ()Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_com_example_myproject_MainActivity_getMyData
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
Error = Type ‘JNICALL’ could not be resolved
i also have syntax errors in the code view but these do not show up between the errors these appear with JNIEXPORT
For the most part, JNICALL is used in windows. I’m 99% sure you can add
#define JNICALL(define it as a blank)
Same with JNIEXPORT.