Using a .SO library with Inline

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
We have an app that is [happily] using Inline C -- but at the moment
it is linking against a .a library [from a commercial package we
bought].  The folks that make the package imply that they may not keep
building the .a and only provide a .SO version of their library.

Is there a way to get Inline to give you access to a .SO library [it
works great to access .a, but about everything I've tried this AM
didn't work for working against the .SO version].  Thanks!

This on some 5.6 with some RedHat Linux...


Re: Using a .SO library with Inline

Can you link directly to the .so in a C script ?
If so, then you'll be able to do the same in an Inline C script - if
not, then you won't :-)

There's also a cpan module (called C::DynaLib, from memory) that
enables you to directly access .so functions - but I doubt that it's as
easy to use as Inline C.


Site Timeline