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?

···

--
Posted via http://www.ruby-forum.com/.

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.

···

On 8/4/06, Ritesh Tijoriwala <riteshtijoriwala@yahoo.com> wrote:

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

Lyle Johnson wrote:

···

On 8/4/06, Ritesh Tijoriwala <riteshtijoriwala@yahoo.com> 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.

--
Posted via http://www.ruby-forum.com/\.

1. Radar – O’Reilly

2. There's a good introduction in
https://pragprog.com/titles/ruby/programming-ruby-2nd-edition/, which you
should already own.

Joe

···

On 8/4/06, Ritesh Tijoriwala <riteshtijoriwala@yahoo.com> wrote:

Lyle Johnson wrote:
> On 8/4/06, Ritesh Tijoriwala <riteshtijoriwala@yahoo.com> 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.

Ritesh Tijoriwala wrote:

Lyle Johnson 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.

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.

···

On 8/4/06, Ritesh Tijoriwala <riteshtijoriwala@yahoo.com> wrote: