JNI Calls different in C vs C++?

前端 未结 4 1017
情深已故
情深已故 2020-12-09 02:07

So i have the following code in C that utilizes Java Native Interface however i would like to convert this to C++ but am not sure how.

 #include 

        
4条回答
  •  旧时难觅i
    2020-12-09 02:40

    Have you tried wrapping your C code in an extern "C". See C++ Faq Lite for more information, and for other possible mechanisms to let you use your C code with C++.

提交回复
热议问题