Load a .so from a Windows binary using Wine

Shachar Shemesh wine-devel at shemesh.biz
Thu May 13 01:05:34 CDT 2004

Raghavan Gurumurthy wrote:

> I have a Windows GUI application that runs on Wine (not Winelib). Now 
> i want to use that code to load a native Linux .so - how can i do this?
> Thanks in advance,
> Raghavan
Write a proxy DLL that exports the functions in PE format, maps the 
arguments and calling convention, and calls the native so. Compile that 
as a winelib app.

Only winelib apps can technically call a native so, so calling your 
library directly from the PE is impossible without either employing a 
proxy, or implementing the linux loader yourself.


Shachar Shemesh
Lingnu Open Source Consulting

More information about the wine-devel mailing list