Ruby C/C++ Interface

Is it possible to develop a ruby application and use a c++ shared
object/dynamic link library on linux and windows without changing the
source code of the ruby application and the c++ shared object/dynamic
link library ? After reading your posts i think this is not as easy.

On 8/23/06, [email protected] [email protected] wrote:

you say it is harder?

I won’t argue that building Ruby on Windows is somewhat difficult
(well gathering the unixy tool chain for Windows takes some patience
and then the build is pretty easy). But that is not necessary using
the one-click ruby installer and VC6, building C/C++ extensions under
windows from an already compiling library is really quite painless.

To qualify I am a long time C/C++ developer under Windows and Linux.
But I have not encountered any Window’s issues with regard to
extension building – I have been very pleased with how easy it is to
use mkmf under Windows (I plan on trying out the new rake based tool
soon :-).

Again if you are fighting with a unixy library or your library is
inherently multi-threaded (like the Win32 service interface), then you
will have some issues – otherwise I find writing C extensions quite
easy in both environments. Of course your mileage may vary.

pth