[Israel.pm] Accessing C API from Perl
Shmuel Fomberg
semuelf at 012.net.il
Thu Mar 18 14:21:44 PDT 2010
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,
Shmuel.
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:
>>>>
>>>> http://search.cpan.org/perldoc?FFI::Library
>>>>
>>>> and:
>>>>
>>>> http://search.cpan.org/perldoc?P5NCI
>>>> _______________________________________________
>>>> Perl mailing list
>>>> Perl at perl.org.il
>>>> http://mail.perl.org.il/mailman/listinfo/perl
>>>>
>>> _______________________________________________
>>> Perl mailing list
>>> Perl at perl.org.il
>>> http://mail.perl.org.il/mailman/listinfo/perl
>> _______________________________________________
>> Perl mailing list
>> Perl at perl.org.il
>> http://mail.perl.org.il/mailman/listinfo/perl
>
>
>
> --
> Gaal Yahas <gaal at forum2.org>
> http://gaal.livejournal.com/
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://mail.perl.org.il/mailman/listinfo/perl
More information about the Perl
mailing list