export variables in dlls

Martin Wilck Martin.Wilck at Fujitsu-Siemens.com
Fri Aug 8 07:27:36 CDT 2003


Am Fre, 2003-08-08 um 13.23 schrieb flyker:

> extern "C" __declspec(dllimport) void xxx(char *str, ...);
> extern "C" __declspec(dllimport) char *zzz;

Except on CygWin/MingW, gcc has no support for __declspec(dllimport)
and __declspec(dllexport). 

If I understand Dimi right, enabling DLL compilation with
winegcc/winewrap is on his to-do list.

I have also looked into this recently and found ts hard to do right.

Best thing right now is probably to write a "def" file manually. If you
have access to a MingW/cygwin system, you can create one their with
dlltool or ld.

Martin

-- 
Martin Wilck                Phone: +49 5251 8 15113
Fujitsu Siemens Computers   Fax:   +49 5251 8 20409
Heinz-Nixdorf-Ring 1	    mailto:Martin.Wilck at Fujitsu-Siemens.com
D-33106 Paderborn           http://www.fujitsu-siemens.com/primergy








More information about the wine-devel mailing list