Tutorial on wrapping C/C++ libraries for use in Ruby?

Is there any tutorial/link/website that explains how to wrap existing
c/c++ libraries for use from within Ruby?

On 8/4/06, Ritesh T. [email protected] wrote:

Is there any tutorial/link/website that explains how to wrap existing
c/c++ libraries for use from within Ruby?

Google for “swig ruby” and you should find some useful links. SWIG
(http://www.swig.org/) is a tool for semi-automatically generating
Ruby wrapper code for C/C++ libraries.

Lyle J. wrote:

On 8/4/06, Ritesh T. [email protected] wrote:

Is there any tutorial/link/website that explains how to wrap existing
c/c++ libraries for use from within Ruby?

Google for “swig ruby” and you should find some useful links. SWIG
(http://www.swig.org/) is a tool for semi-automatically generating
Ruby wrapper code for C/C++ libraries.

I tried swig but is not that clean. I am looking for hand wrapping C/C++
libraries for use with Ruby.

On 8/4/06, Ritesh T. [email protected] wrote:

I tried swig but is not that clean. I am looking for hand wrapping C/C++
libraries for use with Ruby.

  1. http://www.onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html

  2. There’s a good introduction in
    http://www.pragmaticprogrammer.com/titles/ruby/index.html, which you
    should already own.

Joe

Ritesh T. wrote:

libraries for use with Ruby.

The Pickaxe (http://www.pragmaticprogrammer.com/titles/ruby/index.html)
is probably your best source of information about this. Also the Ruby
tarball includes a file called (iirc) README.EXT that has the basic
information.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs