How to embed Ruby in C++?

后端 未结 5 1629
滥情空心
滥情空心 2020-12-09 03:43

What\'s the best way to embed Ruby as a scripting language in C++? Using ruby.h? SWIG? Something else? What I need is to expose some C++ objects to Ruby and have the Ruby in

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-09 04:26

    swig is probablly the way to go..... but ruby doesnt embed too well......

    if you want a language that embeds nicely into C++, try lua

提交回复
热议问题