Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 scrutinizing the Monastery: (13)
As of 2014-12-22 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (121 votes), past polls