Using a windows dll from a winelib or possibly native linux app.

Jon Griffiths jon_p_griffiths at yahoo.com
Tue Dec 9 22:37:08 CST 2003


Hi Arthur,

> the generated vendor.dll.so file does contain the correct
> symbols but they are undefined. 

By any chance is the vendor dll implemented in C++? If not, this
should work. 
If so, you have a bit of a problem, and one that no-one has seriously
tried 
to overcome (or at least if they have, they haven't documented it).

If the dll exports mangled names (_??xxx in the .spec file) then
linking 
cannot occur when you build with gcc because gcc uses a different
name 
mangling scheme. You would need to include stubs to call the real
functions 
and export these with the gcc-mangled names, either by reimplementing
the 
functions inside the dll, or calling through to the real dll with
function 
pointers and GetProcAddress().

Are the vender dll/headers redistributable?

Cheers,
Jon

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/



More information about the wine-devel mailing list