jni can't find method from native lib?

This question already has an answer here:

  • What is the effect of extern “C” in C++? 12 answers

  • The format of method names used in JNI is different to regular C and C++ if you don't specify extern 'C' JNI will be unable to find the function to match your Java native declarations. alternatively you can try RegisterNatives()

    链接地址: http://www.djcxy.com/p/40490.html

    上一篇: 对extern关键字感到困惑

    下一篇: jni无法从本地库找到方法?