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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -