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

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?
[karlgoethebier]: now it's getting weird...
[GotToBTru]: 'getting'?
[Discipulus]: why karlgoethebier ?
[GotToBTru]: ugh .. what's the term for comparing versions of an algorithm to determine which is most efficient?
[hippo]: Benchmarking?
[GotToBTru]: hippo++

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 2017-06-22 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (519 votes). Check out past polls.