本文介绍了类型'JNICALL'无法解析,?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正尝试在Eclipse中使用NDK但是当按照教程进行操作时,会弹出此错误,我不知道它是从哪里来的
i am trying to use the NDK in eclipsebut when following a tutorial this error pops up and i do not understand where it comes from
这是我的.h文件
/* 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
错误=无法解析"JNICALL"类型
Error = Type 'JNICALL' could not be resolved
我在代码视图中也有语法错误,但不会在JNIEXPORT出现的错误之间显示
i also have syntax errors in the code view but these do not show up between the errors these appear with JNIEXPORT
推荐答案
在大多数情况下,Windows中都使用JNICALL.我99%确信您可以添加
For the most part, JNICALL is used in windows. I'm 99% sure you can add
#define JNICALL
(将其定义为空白)
与JNIEXPORT相同.
Same with JNIEXPORT.
这篇关于类型'JNICALL'无法解析,?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!