Well I'm using linux, with perl5.80. The so library in question, is listed in my cache, with ldconfig -p If I do an ldd on gethttp_bce4.so it dosn't list libghttp.so.1.0.0 as being linked. I did manage to get it to run by wrapping it in a shell script: ########################################### #!/bin/sh LD_PRELOAD=/opt/gnome/lib/libghttp.so.1.0.0 export LD_PRELOAD gethttp.pl ####################################### But it sure seems like a clunky way to access a so lib from perl. Is there a way to do this all from within the perl script? I couldn't get the export command to work with a system command, or it didn't affect the loading.
In reply to Re: Inline C, accessing an so lib
by Anonymous Monk
in thread Inline C, accessing an so lib
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |