Click here to get back home

Using a .SO library with Inline

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Using a .SO library with Inline Bernard Cosell 01-28-2005
Posted by Bernard Cosell on January 28, 2005, 12:55 pm
Please log in for more thread options
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...

/Bernie



Posted by kalinabears on January 30, 2005, 1:29 am
Please log in for more thread options
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.

Cheers,
Rob



Similar ThreadsPosted
http, library loaded, httpS library can't be found November 8, 2004, 9:51 am
Perl MakeMaker - how to force Perl linking with the static C library (libcrt.lib) instead of dynamic C library (msvcrt.lib) April 17, 2007, 5:22 pm
Callback from threaded c-library February 21, 2005, 3:18 pm
library not found in openssl May 21, 2006, 12:59 am
In search of working IM library July 26, 2006, 3:43 pm
finding version number of a library August 10, 2007, 6:54 am
How to get GIF support with Perl-GD library? (Can't locate object method "newFromGif") June 5, 2007, 4:22 am
Inline::Tcl vs. Inline::Tcl August 23, 2006, 12:09 pm
ANNOUNCE: Inline::WSC V0.01 April 26, 2006, 11:22 am
Windows: Perl:Inline July 6, 2005, 4:56 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap