Web lists-archives.com

[Mingw-users] debugging DLL dependency issues




Hi,

It seems that the 64-bit version of the gtkglext package is missing
something as we are unable to load one of the DLL it installs:

pacman -S mingw-w64-x86_64-gtkglext
python -c 'from ctypes import
cdll;cdll.LoadLibrary("C:\\msys64\\mingw64\\bin\\libgdkglext-win32-1.0-0.dll")'

fails with:
WindowsError: [Error 127] The specified procedure could not be found

The 32-bit version does not have this problem.
ldd doesn't show anything missing, depends.exe does show some problems
with libgdk_pixbuf - but I'm not sure I trust this ancient tool.
(and gdk_pixbuf is there of course)

Questions:
* what is the best way to check that a DLL is valid and has all its
required dependencies installed? (I use python here but surely there is
a better way?)
* can I trace the DLL loading to see where it is failing?
* since this problem does not affect the 32-bit version, it is fair to
assume that something is going wrong during building / linking - are
there any specific gotchas to look for?

Thanks
Antoine

PS: MSYS2 is awesome!

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe