Android之ndk-build出现c:28:51: error: 'get_string' undeclared here (not in a function)解决办法
来源:互联网 发布:源码说明文档模板下载 编辑:程序博客网 时间:2024/05/26 15:55
1 problem
ndk-build
error: 'get_string' undeclared here (not in a function)
2 resolve
jstring get_strstring(JNIEnv* env, jobject thiz){ return (*env)->NewStringUTF(env, "I am chenyu, 动态注册JNI");}jint add_int(JNIEnv* env, jobject jobj, jint num1, jint num2){ return num1 + num2;}/*** 方法对应表*/static JNINativeMethod gMethods[] = { {"getStr", "()Ljava/lang/String;", (void*)get_str}, {"addInt", "(II)I", (void*)add_int},};
change to
jstring get_strstr(JNIEnv* env, jobject thiz){ return (*env)->NewStringUTF(env, "I am chenyu, 动态注册JNI");}jint add_int(JNIEnv* env, jobject jobj, jint num1, jint num2){ return num1 + num2;}/*** 方法对应表*/static JNINativeMethod gMethods[] = { {"getStr", "()Ljava/lang/String;", (void*)get_str}, {"addInt", "(II)I", (void*)add_int},};
0 0
- Android之ndk-build出现c:28:51: error: 'get_string' undeclared here (not in a function)解决办法
- libiconv-1.14 error: ‘gets’ undeclared here (not in a function)
- /phalcon.zep.c:130892: error: ‘ZEND_FE_END’ undeclared here (not in a function)
- /data/TestModule2/TestModule.c:26:25: error: ‘UTS_RELEASE’ undeclared here (not in a function) char
- `uint32_t' undeclared here (not in a function)
- 【SystemTap】 2.6.36 内核下运行SystemTap出现 error:‘param_ops_int64_t’ undeclared here (not in a function) 错误
- 编译 libiconv-1.14 的时候出现 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- ./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
- PHP扩展开发报错解决[error: ‘PHP_FE_END’ undeclared here (not in a function)] .
- ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
- php动态加载模块的时候出现PHP_FE_END’未声明(不在函数内) -----{error: ‘PHP_FE_END’ undeclared here (not in a function)}
- 解决编译libiconv时报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 在ubuntu上编译toolchain时出错./stdio.h:477: error: 'gets' undeclared here (not in a function)
- 源码编译安装 libiconv-1.14 报:./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function) [
- 编译安装libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- 解决nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)的问题
- 解析linux patch(解决报错./stdio.h:456:1: error: 'gets' undeclared here (not in a function))
- Ubuntu14.04_64编译libiconv出问题 ./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
- Maven的POM.xml详解(二)
- Github-OSGeo
- VxWorks内存分配分析
- 实现一个函数,可以左旋字符串中的k个字符。 AABCD左旋一个字符得到ABCDA AABCD左旋两个字符得到BCDAA
- 2.leetcode-Reverse Integer
- Android之ndk-build出现c:28:51: error: 'get_string' undeclared here (not in a function)解决办法
- eclipse删除workspace空间&workspace配置
- (六)任务分解法(WBS)
- python 有序字典
- 8个常用字符串处理函数
- MySQL 对于千万级的大表要怎么优化?
- Maven的POM详解(三)
- CSDN日报20170507 ——《技能终将过时,而能力与时俱进》
- JVM(二) java虚拟机与程序的生命周期