[Backgroundrb-devel] Need to call C++ processing beast from backgroudrb
douglass.turner at gmail.com
Fri Jun 16 13:09:43 EDT 2006
Thanks. Got some reading to do.
On 6/16/06, Ezra Zygmuntowicz <ezmobius at gmail.com> wrote:
> Welcome Doug!
> Thanks for the kind words. THe quick and easy way to call your c++
> binary is with system. OR even better IO.popen. IO.popen allows you
> to open the binary and connect to stdin and stdout so you can read
> and write to the binary. But both of these are hacks compared to the
> better way to do it. Ruby is extremely easy ot write C or C++
> extensions for, its one of the best features of the language. So I
> would suggest that you write a ruby/C++ extension for your imaging
> module and use that. There are a few ways to go about it. One way is
> swig, another way is just straight ruby/C++ extension and a third way
> is via DL. Google around and you will find much info on all three of
> these. I'm not familiar with your binary and I am not much of a C
> coder so I don't think I will be too much help but here's a nice link
> to get you started:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Backgroundrb-devel