Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Ruby Extensions
Ritesh Tijoriwala
8/11/2006 9:14:00 PM
Hello All,
I need to wrap/extend my C++ header file to be able to use it from Ruby.
The header file depends on other header files as well. But the only
functionality I desire to use in from Ruby is from the original header
file. Is it necessary to wrap all include header files as well or just
wrapping the main header file will do the trick..
Thanks,
Ritesh.
--
Posted via
http://www.ruby-...
.
1 Answer
Timothy Goddard
8/12/2006 8:02:00 AM
0
Ritesh Tijoriwala wrote:
> Hello All,
> I need to wrap/extend my C++ header file to be able to use it from Ruby.
> The header file depends on other header files as well. But the only
> functionality I desire to use in from Ruby is from the original header
> file. Is it necessary to wrap all include header files as well or just
> wrapping the main header file will do the trick..
>
> Thanks,
> Ritesh.
>
> --
> Posted via
http://www.ruby-...
.
You could use SWIG to wrap just this header file. Only the classes and
functions you want to access need be provided to make the binding. See
the SWIG documentation for details.
Alternatively, you can create a C interface (no C++) and use Ruby/DL to
use the library without a binding.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Ruby Extensions
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password