in reply to Re: Interface Perl with C++
in thread Interface Perl with C++

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.

Replies are listed 'Best First'.
Re^3: Interface Perl with C++
by Fletch (Bishop) on Dec 01, 2005 at 14:47 UTC

    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.

Re^3: Interface Perl with C++
by philcrow (Priest) on Dec 01, 2005 at 14:45 UTC
    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