LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   "Error while loading shared libraries" - different solutions? (https://www.linuxquestions.org/questions/programming-9/error-while-loading-shared-libraries-different-solutions-58741/)

stodge 05-08-2003 11:07 AM

"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

unSpawn 05-08-2003 11:48 AM

Exporting LD_SO_PRELOAD?

mdh 05-09-2003 02:26 AM

Just use a wrapper script exporting
LD_LIBRARY_PATH before running your executable

cybercop12us 05-11-2003 02:19 AM

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.