How to call Java from C++ using SWIG?

后端 未结 2 759
离开以前
离开以前 2021-01-12 10:02

I am able to call C++ code from Java using SWIG but I can\'t find any documentation on how to do the reverse (call Java from C++).

The official SWIG documentation s

2条回答
  •  暖寄归人
    2021-01-12 10:12

    Actually this is possible and I have implemented it based on inheriting a virtual class from C++ to Java.

    You can find solution in chapter "24.5 Cross language polymorphism using directors" of Java part of SWIG document.

提交回复
热议问题