Absolutely BRILLIANT, thank you!
Of course I know you cannot mix 32 and 64 bits in the same image, and my DLL is indeed a 32 bit... at least I thought so...
Using which together with depends, I realized that dllwrap actually kept trying to link with another copy of jawt.dll, namely the "default" one... which is 64-bit on a Win7-64 machine.
For those faced with a similar problem, this is what solved it. Most of the time, you indeed want to have the 64-bit version of the DLL accessible, so modifying the system Path variable would spoil your system most of the time. Fortunately, mingw32-make makes it possible to issue
PATH := D:\Programs\MinGW\bin;$(PATH)
to prepend the path to the 32-bit DLL just for the duration of the build (kudos, btw!). Problem solved, the build is flawless.
Thanks again (five stars coming!)
View this message in context: Re: Link with 32-bit DLL ok on XP-32 but fails on Win7-64
Sent from the MinGW - User mailing list archive at Nabble.com.