delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 20 Apr 2006 13:50:51 -0700 |
From: | Thomas Preisler <Thomas DOT Preisler AT Sun DOT COM> |
Subject: | Re: how to get my app to find a dynamic library |
In-reply-to: | <4447ED6D.6050001@tibco.com> |
To: | cygwin AT cygwin DOT com |
Message-id: | <4447F42B.6030902@sun.com> |
MIME-version: | 1.0 |
References: | <4447ECB4 DOT 5050707 AT sun DOT com> <4447ED6D DOT 6050001 AT tibco DOT com> |
User-Agent: | Thunderbird 1.5 (X11/20060113) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
mwoehlke wrote: > Thomas Preisler wrote: >> My main app 'main.c' is in one directory and I have a dynamic library >> 'cygmylib.dll' in a subdiretory 'tmp'. I can compile and link my main >> app fine but having trouble running it. It complaints about not being >> able to find the dynamic library. I have tried just about everything >> from -L, -Wl,-rpath using relative or absolute paths on the compile >> line to setting LD_LIBRARY_PATH and LD_RUN_PATH at run time, but to no >> avail. > > Seeing as how this is Cygwin, and not Interix or A Real *nix, did you > try setting PATH? (PATH="./tmp:$PATH" ./app # this is one line) > Didn't think of that. It works fine. Thanks. --thoams -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |