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.
| [reply] |
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")
| [reply] |