[Israel.pm] Accessing C API from Perl
semuelf at 012.net.il
Thu Mar 18 14:27:50 PDT 2010
On second look, P5NCI is totally red for Win32. (CPAN testers)
So it's probably out.
Shmuel Fomberg wrote:
> Hi Gaal.
> <sorry for replying to this message after so long, but I just tried to
> use it>
> I tried to install FFI::Library, but failed to build / install ffcall.
> does anyone knows where I can download a compiled version for Windows?
> Also, about Inline::C, how do I tell it "give me all the functions in
> this header file"?
> I have a compiler on the target PC, so it is not a problem.
> I haven't tried P5NCI yet.
> Thanks for the info,
> Gaal Yahas wrote:
>> Inline::C works. It may be tricky to deploy, you need a compiler where
>> you run it.
>> P5NCI generates a lot of code, but possibly is the best tested/proven
>> of the lot(?).
>> FFI::Library is designed for your situation, calling C from Perl. It's
>> not fully automatic nor foolproof (if you make a mistake in the
>> signatures, you'll crash). It also requires you install ffcall.
>> I've not used Pike.
>> 2010/2/13 Shushu Inbar שושו ענבר <shushu.i at gmail.com>
>>> If I recall correctly Gaal (RU Here?) showed me something like that
>>> few years ago. I think it was Inline::C, but I am not sure about it.
>>> On Sat, Feb 13, 2010 at 00:29, Boris Reitman <boris.reitman at gmail.com> wrote:
>>>> also Look at Pike, it is perl inside C++
>>>> 2010/2/12 Yuval Kogman <nothingmuch at woobling.org>:
>>>>> Apart form Inline::C, also look into:
More information about the Perl