in reply to C++ bindings ?

Take a look at Inline::CPP.

Replies are listed 'Best First'.
Re^2: C++ bindings ?
by Anonymous Monk on Mar 13, 2010 at 23:44 UTC
    I don't see how.
    Is there a way to specify external C++ files and I'm missing ?

    Besides that, it looks like this module actually compiles the code in runtime, which is totally impracticable in this case =/
      Is there a way to specify external C++ files and I'm missing ?

      Yes:
      use Inline Config => INC => '-I/my/path', LIBS => '-L/your/path -lyourlib'; use Inline CPP => <<'END'; /* your C++ code */ END # your perl code
      See the Inline::CPP documentation - and the Inline::C-Cookbook documentation (as the same principles apply to C++).

      Cheers,
      Rob
      It only compiles once. It reuses the previously compiled library if the code hasn't changed.