Hi,

In message "[ruby-talk:03532] Extension in C++?"
    on 00/06/20, Robert Feldt <feldt / ce.chalmers.se> writes:

|Extending Ruby in C is simple and pretty straightforward. I'm considering
|putting together an extension based on some C++ classes I have. Do I have
|to take any special measures to interface C++ and Ruby as compared to Ruby
|and C? Would it, for example, work to Wrap_Struct(class MyCppClass)
|directly or is there other ways? Can extconf and mkmf handle cpp
|files? Anyone done this and have some sample code?

There's no difference between C and C++ in writing extension, except
you have to wrap initialize function (Init_xxx) by extern "C".

							matz.