| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RP_MATCHES_RCVD |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <32937705.post@talk.nabble.com> |
| Date: | Thu, 8 Dec 2011 14:18:45 -0800 (PST) |
| From: | gblorf <bcboy AT thecraftstudio DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | dll search path |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |