WineBuild/WineLib <-> MFC

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

jaymz at 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:

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

More information about the wine-devel mailing list