[Haskell-cafe] Troubles with DLLs

Henk-Jan van Tuyl hjgtuyl at chello.nl
Sat Dec 22 08:10:15 CET 2012


On Fri, 21 Dec 2012 21:08:43 +0100, Henk-Jan van Tuyl <hjgtuyl at chello.nl>
wrote:

> 1) How can I find out which DLLs my application needs (and which  
> package/library is to blame for it)

I have found a partial answer: cygcheck from Cygwin can list dependencies
on DLLs recursively, like this:

> cygcheck.exe .\BouncingBalls.exe
.\BouncingBalls.exe
     C:\WINDOWS\system32\KERNEL32.DLL
       C:\WINDOWS\system32\ntdll.dll
     C:\WINDOWS\system32\msvcrt.dll
     C:\WINDOWS\system32\SHELL32.DLL
       C:\WINDOWS\system32\ADVAPI32.dll
         C:\WINDOWS\system32\RPCRT4.dll
           C:\WINDOWS\system32\Secur32.dll
       C:\WINDOWS\system32\GDI32.dll
         C:\WINDOWS\system32\USER32.dll
       C:\WINDOWS\system32\SHLWAPI.dll
     C:\WINDOWS\system32\WSOCK32.DLL
       C:\WINDOWS\system32\WS2_32.dll
         C:\WINDOWS\system32\WS2HELP.dll
     C:\Haskell\Projects\X\wxc.dll
       C:\Haskell\Projects\X\libstdc++-6.dll
         C:\Haskell\Projects\X\libgcc_s_dw2-1.dll
etcetera.


If a DLL is not found, you will get a message like:
Error: could not find wxc.dll

It will not always be apparent, which package is responsible for
the DLL dependency.

I am still left with the question:
how can I find the error location when the crash occurs in C/C++ code?

Regards,
Henk-Jan van Tuyl


-- 
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--



More information about the Haskell-Cafe mailing list