This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to get my app to find a dynamic library
- From: Thomas Preisler <Thomas dot Preisler at Sun dot COM>
- To: cygwin at cygwin dot com
- Date: Thu, 20 Apr 2006 13:50:51 -0700
- Subject: Re: how to get my app to find a dynamic library
- References: <4447ECB4.5050707@sun.com> <4447ED6D.6050001@tibco.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/