dll search path
gblorf
bcboy@thecraftstudio.com
Thu Dec 8 22:19:00 GMT 2011
How do I influence the run-time search path for dlls? I tried
LD_LIBRARY_PATH, and PATH, with no success.
I've build a binary against the build directory of a library, which leaves
the library in ${SRC}/.libs (a libtool convention, I believe), by passing in
-L${SRC}/.libs. The link went ok, but when I run it reports "error while
loading shared libraries: foo.dll: cannot open shared object file: No such
file or directory".
I also note that ldd doesn't behave as I'd hoped. It lists ntdll, kernel32,
and KERNELBASE, but not the library I've linked against. How do I get the
list of libraries I've linked against?
Could the "No such file" error be due to a transitive dependency?
--
View this message in context: http://old.nabble.com/dll-search-path-tp32937705p32937705.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list