in reply to Re: C++ bindings ?
in thread C++ bindings ?

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 =/

Replies are listed 'Best First'.
Re^3: C++ bindings ?
by syphilis (Archbishop) on Mar 14, 2010 at 10:36 UTC
    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
Re^3: C++ bindings ?
by ikegami (Patriarch) on Mar 14, 2010 at 02:23 UTC
    It only compiles once. It reuses the previously compiled library if the code hasn't changed.