From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: directory y: exe runs properly, directory x: exe quits straightaway
Date: Fri, 14 Feb 2014 19:50:00 -0000 [thread overview]
Message-ID: <52FE6F10.4050202@gmail.com> (raw)
In-Reply-To: <1392399894.19760.83500773.4F952320@webmail.messagingengine.com>
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
next prev parent reply other threads:[~2014-02-14 19:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 18:02 lothar atheling
2014-02-14 19:50 ` Marco Atzeri [this message]
[not found] ` <1392571459.4260.84059561.1F420E4B@webmail.messagingengine.com>
2014-02-16 18:15 ` Marco Atzeri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52FE6F10.4050202@gmail.com \
--to=marco.atzeri@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).