in reply to Interface Perl with C++

See Inline::CPP, perlxstut, perlembed.

Replies are listed 'Best First'.
Re^2: Interface Perl with C++
by Anonymous Monk on Dec 01, 2005 at 14:32 UTC
    Some suggested to use SWIG. How is this different from the one you have mentioned. My aim is to glue components written in C++ using Perl. It would be great if you could throw some light on this.

    Thanks in advance.

      SWIG is another option, but I've never personally (directly) used it. It allows wrapping a library from several different languages with the same SWIG interface code (so you do the SWIG part once and get a Perl interface, a Python interface, a TCL interface, . . .). If you might want to interface from multiple languages then definately take a look at SWIG, otherwise Inline::Cpp is probably going to be the easiest route.

      I second the first suggestion. The easiest way is to use Inline for your language. Other approaches are far more complex.

      The docs, for all the Inline modules I've looked at, are clear.

      Phil