X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=cqzquuh8IiTb2ajla+OZ39RaKDpH2T7aEDodLoxj8FB
	H+rnyWEvcNMtKF99oaBhkRB+pLPHwLzspWOs+wHuZUigUSOxOw2LXatp85ucsow6
	Bq+NE6hGnz3/hWzUlW6XSfK+BnUKyyUC6/se5BkPDVuKR6+itbGFefX1H6ffi2S0
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=uOYeCOXwOymI5VpMa/rLqudqNvg=; b=pJztVeAHHeM/xpyMV
	Lr+JrFSSk4lOiYYkgYFDUjUuh2jO06ifCj4F1PG76JSRrdAE2ji8oLCmJT+Sncwh
	1u089KRJW8R/gKlCUXKuvVfd4n0d/MlhewBipuc8HSZKa/w+Dd/R9smPAHbN8Ew9
	w0j7OjxbeCRMpGevLqdE/68Yb4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ee0-f54.google.com
X-Received: by 10.14.1.68 with SMTP id 44mr11271287eec.0.1392406291506;        Fri, 14 Feb 2014 11:31:31 -0800 (PST)
Message-ID: <52FE6F10.4050202@gmail.com>
Date: Fri, 14 Feb 2014 20:31:28 +0100
From: Marco Atzeri <marco.atzeri@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: directory y: exe runs properly, directory x: exe quits straightaway
References: <1392399894.19760.83500773.4F952320@webmail.messagingengine.com>
In-Reply-To: <1392399894.19760.83500773.4F952320@webmail.messagingengine.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes



On 14/02/2014 18:44, lothar atheling wrote:
>
> i am porting an application built with Visual C++ to build under Mingw
> gcc (CXX=/usr/bin/i686-w64-mingw32-g++)

this is not the mingw list...

> in my development directory x, the program apparently builds correctly,
> but it quits directly when run.
>
> when i copy the exe to another directory y, the program runs well.
>
> also, in the development directory, ldd shows:
> $ ldd mung.exe
>          ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000)
>          kernel32.dll => /xp0/WINDOWS/system32/kernel32.dll (0x7c800000)
>
> while in the copy directory, ldd shows:
> $ ldd mung.exe
>          ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000)
[cut]
>          glut32.dll => /usr/bin/glut32.dll (0x10000000)
>          WINMM.dll => /xp0/WINDOWS/system32/WINMM.dll (0x76b40000)
>          libgcc_s_sjlj-1.dll =>
>          /usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll
>          (0x6cec0000)
>          libstdc++-6.dll =>
>          /usr/i686-w64-mingw32/sys-root/mingw/bin/libstdc++-6.dll
>          (0x6fc40000)
>
> this behaviour has some reproducibility: if i copy the development
> directory with tar and rebuild, the behaviour represents, whereas if i
> make a new build directory, copy the sources and the makefile and
> rebuild, the behaviour vanishes.

ldd is not the right tool for this search.
It does not show the DLLs not available on path

try:
objdump -x mung |grep "DLL Name"




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

