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 =/ | [reply] |
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
| [reply] [d/l] |
It only compiles once. It reuses the previously compiled library if the code hasn't changed.
| [reply] |