On Wed, Apr 15, 2015 at 10:29 AM, Lorenzo Trivelli
At 06:30 13/04/2015, you wrote:
Hi, I really need to use Java with this library. Is it possible to use JNI on this library or do I need to convert this library to Java? I find the latter task is going to be really difficult so I hope that I can use JNI.
Thank you for your help.
Hi, AFAIK it is not easy to do that due to C++ name mangling and the absence of any ABI in C++ itself like C
A possible but limited workaround should be to create a DLL with a C interface which uses the boost objects you need. Next, you can call it through JNI, but obviously you can pass only basic data types
I would concur with this approach: if you can distill an API that would be useful to your Java environment.
regardds Lorenzo
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users