On 8/22/2012 06:26, JonY wrote:
>> According to mingw.org <basetyps.h>, GUID_SECT was only necessary for
>> ancient GCC versions.  At a minimum, we should be able to just remove
>> the GUID_SECT from those defines.  Unfortunately just ifndef _W64 those
>> defines entirely leads to link errors:
>>
>> hw/xwin/winengine.c:107: undefined reference to `_IID_IDirectDraw4'
>> winshaddd.o: In function `winAllocateFBShadowDD':
>> hw/xwin/winshaddd.c:253: undefined reference to `_IID_IDirectDraw2'
>> winshadddnl.o: In function `winAllocateFBShadowDDNL':
>> hw/xwin/winshadddnl.c:285: undefined reference to `_IID_IDirectDraw4'
>> winpfbdd.o: In function `winAllocateFBPrimaryDD':
>> hw/xwin/winpfbdd.c:89: undefined reference to `_IID_IDirectDraw2'
>>
> 
> mingw-w64 ddraw.h already has them, though they're inlined, gcc doesn't
> like inlined data. DEFINE_GUID may need fixing, or at least instanced in
> libuuid or libddraw.
> 
> I'll need to talk to to the Jacek from Wine to get a solution.
> 

Here's a quick and dirty workaround, add and compile the following file
and link it with the failing executable:

=====================
#define INITGUID 1
#include <ddraw.h>
=====================

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to