X-Spam-Check-By: sourceware.org
Date: Thu, 20 Apr 2006 15:22:05 -0500
From: mwoehlke <mwoehlke-nospam@tibco.com>
Subject: Re: how to get my app to find a dynamic library
In-reply-to: <4447ECB4.5050707@sun.com>
To: cygwin@cygwin.com
Reply-to: cygwin@cygwin.com
Message-id: <4447ED6D.6050001@tibco.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
User-Agent: Thunderbird 1.5 (X11/20051201)
References: <4447ECB4.5050707@sun.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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)

-- 
Matthew
"Ethics? We've heard of it" -- Microsoft

--
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/

