malbec
2011-Aug-31 20:20 UTC
[Wine] linux executable loading linux .so which calls windows dll
I want to write a linux .so that calls a windows .dll, which will be loaded (all by itself) as an extension to a linux executable. any tips on where to start? would it be better to start under linux using gcc + wine tools or under windows using mingw ...-> cross-compilation? not sure where to start. not sure if its possible. please advise.
vitamin
2011-Sep-02 13:40 UTC
[Wine] Re: linux executable loading linux .so which calls windows dll
malbec wrote:> I want to write a linux .so that calls a windows .dll, which will be loaded (all by itself) as an extension to a linux executable.Short answer - in 99% cases this won't work. Long answer - to load a Windows DLL you need big parts of Wine. Unless you willing to spend weeks stripping all extras, it's better to use the entire Wine. And compile your "linus .so" as a winelib.