export variables in dlls

Alexandre Julliard julliard at winehq.org
Fri Aug 8 13:10:40 CDT 2003

flyker <flyker at everys.com> writes:

> mylib.cpp compiled successfully in mylib.dll.so
> main.cpp compiler error: undefined reference to `zzz'
> What I do wrong ???
> How to export variables ???

You can export them but you can't import them from a Winelib app,
since the standard gcc doesn't support the dllimport mechanism. I
doubt this will be supported anytime soon.

Alexandre Julliard
julliard at winehq.com

More information about the wine-devel mailing list