Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-10-31 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (223 votes), past polls