First bust is because you have overriding key wine headers. /home/khana/mvs6/VC98/include/windef.h That has to come from wine own includes. -I/home/khana/mvs6/VC98/include Ie really bad idea. Wine headers and MS VC headers are not interchangeable. Different compliers different requirements. MFC for memory has to be built from source and particular files altered so it works. Like telling it what platform it has.