WineBuild/WineLib <-> MFC

Francois Gouget fgouget at codeweavers.com
Thu Dec 5 13:52:36 CST 2002


jaymz at free.fr wrote:
[...]
> What's the exact syntact to correctly export class static variable from 
> a dll ?

Exporting a variable is not the problem, what you did is fine. It will 
work if you try to access this variable from a native Windows dll. The 
problem is that winebuild does not know how to *import* a variable from 
another builtin library. For more details see this thread:
http://www.winehq.com/hypermail/wine-devel/2002/12/0005.html

That means you have to link with the MFC library in the Unix sense to 
get these variable references resolved correctly.

-- 
Francois Gouget
fgouget at codeweavers.com





More information about the wine-devel mailing list