This is the mail archive of the
cygwin
mailing list for the Cygwin project.
dll search path
- From: gblorf <bcboy at thecraftstudio dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 8 Dec 2011 14:18:45 -0800 (PST)
- Subject: dll search path
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