Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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

Replies are listed 'Best First'.
Re: Calling shared Objects from C in Perl Scripts
by syphilis (Chancellor) on Jun 17, 2009 at 23:18 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 citromatik (Curate) on Jun 17, 2009 at 22:38 UTC
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

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 musing on the Monastery: (5)
As of 2016-09-29 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (547 votes). Check out past polls.