How can I use a C++ class from Perl?

前端 未结 3 1903
春和景丽
春和景丽 2021-01-01 20:55

I have a set of classes written in C++. What would be best way to call them from a Perl script? Thanks.

3条回答
  •  爱一瞬间的悲伤
    2021-01-01 21:27

    Check http://www.swig.org :

    "SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is used with different types of languages including common scripting languages such as Perl, PHP, Python, Tcl and Ruby."

提交回复
热议问题