On 12/30/2011 10:22 AM, Shlomi Fish wrote:
On Thu, 29 Dec 2011 22:13:37 +0000
Alberto Simões<al...@alfarrabio.di.uminho.pt>  wrote:
I am used to write XS code (well, simple code) for C libraries.
I never did anything for C++ (and I do not know much about C++), but
I'll need to write a simple interface.

Mostly, I need to call a method inside a namespace, and that should be
enough.

Can you suggest any module that interfaces with a C++ library where I
can peek for ideas?

* http://search.cpan.org/dist/Wx/

Ouch. Doesn't get much larger than these bindings...

Try looking at ExtUtils::XSpp and specifically at the example: http://cpansearch.perl.org/src/MBARBON/ExtUtils-XSpp-0.1602/examples/XSpp-Example/

A more real-world example (not at the scale of Wx) would be Math::Clipper or Math::ThinPlateSpline. Also, my old YAPC slides might be helpful: http://steffen-mueller.net/talks/xspp/

Cheers,
Steffen

Reply via email to