Can not compile JNI file with nvcc

Hi all, I cannot compile .cu file with JNI and CUDA code in it with nvcc. I always get the error below for instructions like (* env)->GetStringUTFChars(env, s, 0).

error: expression must have pointer type

Can anybody help me figure out how can I fix this? Thanks.

I just changed to cpp syntax (env->GetStringUTFChars(s, 0)) and worked. Thanks.