参考链接:http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/design.html#wp16696 【给出了清楚的例子(*env)->GetStringUTFChars(env, s, 0);】
如果,JNI的代码中用到NULL时,可能会报错:NULL undeclared in this function.
其实,解决方法,很简单。
NULL未申明,只需要加入一个头文件:
#include "stddef.h"然后重新运行就好。