jni - Android native "undeclared (first use in this function)" -
i quite new android-ndk. code
const char *incstr = (*env)->getstringutfchars(env, str, null); if (incst && incst[0] != '\0') { char *outcstr = b64encode(incstr); return (*env)->newstringutf(env, outcstr); }
i error
'incst' undeclared (first use in function) if (incst && incst[0] != '\0') {
what did wrong?
const char *incstr = (*env)->getstringutfchars(env, str, null); if (incst && incst[0] != '\0') {
you declared incstr
tried use incst
without r
Comments
Post a Comment