External function calls?

Hey all,
is there a generic way to make external function from ruby?
I know I can write specific c code as a ruby module and use it, and I
know I can use that inline-c stuff, but what I want is a way to use
existing c or c++ libraries without having to write wrappers. I know
in windows I can make winole objects and play with them, but what
about on linux/bsd/osx/whatever?

Thanks,
Kyle

On 2/23/07, Kyle S. [email protected] wrote:

Hey all,
is there a generic way to make external function from ruby?
I know I can write specific c code as a ruby module and use it, and I
know I can use that inline-c stuff, but what I want is a way to use
existing c or c++ libraries without having to write wrappers. I know
in windows I can make winole objects and play with them, but what
about on linux/bsd/osx/whatever?

Thanks,
Kyle

try DL, it seems available on my Ubuntu.

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