Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Calling shared Objects from C in Perl Scripts

by deCarta (Initiate)
on Jun 17, 2009 at 22:11 UTC ( #772555=perlquestion: print w/ replies, xml ) Need Help??
deCarta has asked for the wisdom of the Perl Monks concerning the following question:

Hi , I need to call the functions from dynamic libraries from C (shared Objects, ie .so files) in Perl Script. Can anybody help me out with a small example or way to do it. Please help.

Comment on Calling shared Objects from C in Perl Scripts
Re: Calling shared Objects from C in Perl Scripts
by citromatik (Curate) on Jun 17, 2009 at 22:38 UTC
Re: Calling shared Objects from C in Perl Scripts
by jethro (Monsignor) on Jun 17, 2009 at 22:39 UTC
    The manpages perlxs and especially perlxstut have examples. For quick and dirty there seems to be C:DynaLib.
Re: Calling shared Objects from C in Perl Scripts
by renodino (Curate) on Jun 17, 2009 at 22:45 UTC
    P5NCI may be sufficient if the function signatures aren't too complicated.

    Perl Contrarian & SQL fanboy
Re: Calling shared Objects from C in Perl Scripts
by syphilis (Canon) on Jun 17, 2009 at 23:18 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://772555]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (17)
As of 2015-07-02 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls