"Error while loading shared libraries" - different solutions?
I understand that LD_LIBRARY_PATH doesn't include the current directory. I'm trying to run a program I'm developing that needs to load a shared library at runtime. Are there any ways apart from setting LD_LIBRARY_PATH of getting my program to load a shared library from its current directory?
Thanks |
Exporting LD_SO_PRELOAD?
|
Just use a wrapper script exporting
LD_LIBRARY_PATH before running your executable |
may be you can use dlopen() call and give the path
of shared library . see man dlopen() |
All times are GMT -5. The time now is 08:25 PM. |