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、通
相關文章
相關標籤/搜索