Include existing C/C++ libraries in Ruby.

  • Thread starter Ritesh Tijoriwala
  • Start date
R

Ritesh Tijoriwala

I want to use my existing C/C++ libraries in Ruby and is there a way to
do that? I tried SWIG but it doesn't work out that good for complex
objects and methods that I have in my libraries. Any other ways to
accomplish this?
 
A

Aredridel

I want to use my existing C/C++ libraries in Ruby and is there a way to
do that? I tried SWIG but it doesn't work out that good for complex
objects and methods that I have in my libraries. Any other ways to
accomplish this?


I hand-wrap libraries. It's not that hard, and I can micromanage the API
that way.

Aria
 
R

Ritesh Tijoriwala

Aredridel said:
I hand-wrap libraries. It's not that hard, and I can micromanage the API
that way.

Aria

Hello Aria,

Can you demonstrate with some example. It will help me great in
understanding. Appreciate your help.

Ritesh.
 
M

Matt Todd

I have an idea, though I'll honestly say that I don't know if it'll
work: try making some simpler C/C++ libraries, let SWIG do its thing
with those, and see what the code it produces looks like. It's
basically a template or a reference!

Then again, I don't work with Ruby extensions and C/C++ libraries
(though I intend to someday).

M.T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,686
Latest member
scamivo

Latest Threads

Top