I am working on a simple OpenCV code to display an image after undergoing sobel operation. I have included all the necessary paths to the Project Properties for including th
Chances are that you are using C
syntax in CPP
file
I had the same error
Just switch to the right syntax and Problem will be solved C syntax
return (*env)->NewStringUTF(env, "Hello from JNI !");
C++ Syntax
return (env)->NewStringUTF("Hello from JNI !");
After switching from C to C++ syntax my problem got solved.