[ITA] w32api-3.0b_svn5368-1

JonY jon_y@users.sourceforge.net
Wed Aug 22 09:08:00 GMT 2012


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>
=====================

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20120822/e8b60638/attachment.sig>


More information about the Cygwin-apps mailing list