Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: perlcc and .so files

by AgentM (Curate)
on Mar 19, 2001 at 02:03 UTC ( [id://65311]=note: print w/replies, xml ) Need Help??


in reply to perlcc and .so files

You'll have to use perlxs. If it hasn't already been done yet, you'll need perlxs glue to access C header files which link to the shared objects. While any ol' ELF binary (which perlcc can generate) can request to load a lib, that doesn't mean it has automatic access to that lib's functions. You might have to write a whole new module around the C header file which may take a manner of minutes or hours. Start with the perlxstutorial. Good luck!
AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.

Replies are listed 'Best First'.
(tye)Re: perlcc and .so files
by tye (Sage) on Mar 19, 2001 at 20:19 UTC

    Actually, you can use C::Dynalib or FFI to roll your own wrappers to dynamic library functions at run time. (You can also use Win32::API for this if you are on Win32, but I tend to discourage that.)

    But I'm not sure this has anything to do with the original question as I know almost nothing about perlcc. Perhaps the original poster could post more details like actual code they've actually tried and how it failed, etc.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://65311]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-26 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found