nirf1 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I would like to call c++ functions (that are inside a shared object (*.so)) from a perl code. What is the best (and simple - if possible) way of implementing it and achieving that goal? Thanks, Nir

Replies are listed 'Best First'.
Re: c++ and perl
by moritz (Cardinal) on May 05, 2008 at 07:44 UTC
    I haven't tried it, but Inline:CPP looks rather promising.

    Update: I looked at the smoke results and reviews, perhaps it's not that promising. If the stuff you want is callable from C, try Inline::C instead.

Re: c++ and perl
by andreas1234567 (Vicar) on May 05, 2008 at 07:50 UTC
Re: c++ and perl
by nirf1 (Novice) on May 13, 2008 at 16:56 UTC
    Hi, I am using inline::CPP in order to get access to CPP functions located in shared objects that I have. I searched the web for the right way of loading a shared object into the perl (so that I can call for the cpp functions directly from the perl code) and haven't found none. Does somebody know how it is being done? Thanks, Nir