# C++ Wrapper for Ruby

**URL:** <https://rubytalk.org/t/c-wrapper-for-ruby/48075>\
**Category:** ruby-talk\
**Created:** [2 August 2008 05:23 UTC](https://rubytalk.org/t/c-wrapper-for-ruby/48075 "2008-08-02T05:23:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Kubica](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@Chris\_Kubica](https://rubytalk.org/u/Chris_Kubica)\
**Post date:** [2 August 2008 05:23 UTC](https://rubytalk.org/t/c-wrapper-for-ruby/48075/1 "2008-08-02T05:23:58Z")

</div>

I am trying to write some open source plugins for FileMaker Pro, but  
I'd rather write them in Ruby rather than C or C++ which is what  
FileMaker requires.

Someone else has written a C++ wrapper for Java to do what I'm doing,  
but there isn't one for Ruby. Anyone interested in looking at an  
example document describing the FileMaker plugin API and helping me?

No pressure. 🙂

Sincerely,

Chris Kubica  
President, Founder

Application Architects

1-888-896-4608 (Ph/Fax)  
1-202-280-2042 (Int'l Ph/Fax)

[http://www.applicationarch.com](http://www.applicationarch.com)

Certified FileMaker Developer  
FileMaker Business Alliance (FBA) Member

FDA, Part 11, GxP, HIPAA and SOX Compliance Experts

---

<div class="post-metadata">

**Author:** ![Suraj\_Kurapati1](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Suraj\_Kurapati1](https://rubytalk.org/u/Suraj_Kurapati1)\
**Post date:** [2 August 2008 06:42 UTC](https://rubytalk.org/t/c-wrapper-for-ruby/48075/2 "2008-08-02T06:42:24Z")

</div>

Chris Kubica wrote:

> I am trying to write some open source plugins for FileMaker Pro, but  
> I'd rather write them in Ruby rather than C or C++ which is what  
> FileMaker requires.

Use rb++ or Rice to make C++ extensions for Ruby:

&nbsp;&nbsp;[http://rbplusplus.rubyforge.org](http://rbplusplus.rubyforge.org)  
&nbsp;&nbsp;[http://rice.rubyforge.org](http://rice.rubyforge.org)

There is also SWIG for making C extensions:

&nbsp;&nbsp;[http://www.swig.org](http://www.swig.org)

RubyInline might also be applicable:

&nbsp;&nbsp;[rubyinline | software projects | by ryan davis](http://www.zenspider.com/ZSS/Products/RubyInline/)

> Anyone interested in looking at an  
> example document describing the FileMaker plugin API

No. That's what computers (running SWIG) are for. 😉

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Joshua\_Ballanco](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Joshua\_Ballanco](https://rubytalk.org/u/Joshua_Ballanco)\
**Post date:** [2 August 2008 07:29 UTC](https://rubytalk.org/t/c-wrapper-for-ruby/48075/3 "2008-08-02T07:29:10Z")

</div>

Chris Kubica wrote:

> I am trying to write some open source plugins for FileMaker Pro, but  
> I'd rather write them in Ruby rather than C or C++ which is what  
> FileMaker requires.

Swig should work, just make sure you have a recent version (earlier  
versions didn't work as well with Ruby). You might check out the  
rbplusplus project as well:  
[http://github.com/jameskilton/rbplusplus/tree/master](http://github.com/jameskilton/rbplusplus/tree/master)

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
