linux executable loading linux .so which calls windows dll
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.
Re: linux executable loading linux .so which calls windows d
Short answer - in 99% cases this won't work.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.
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.
the winemaker tool is your friend.
(and the outdated guide: http://www.winehq.org/docs/winelib-guide/index)
(and the outdated guide: http://www.winehq.org/docs/winelib-guide/index)