Android Studio下的NDK开发(四):调用动态链接库中的函数

1、编写Hello.c,代码如下 #include "Hello.h" int sum(int a, int b){ return a+b; } 2、编写Hello.h,代码如下 #ifndef JNIDEMO_IV_HELLO_H #define JNIDEMO_IV_HELLO_H int sum(int, int); #endif //JNIDEMO_III_HELLO_H 3、通
相关文章
相关标签/搜索