Mail Archives: cygwin-developers/2003/01/08/06:35:27
Hi,
I can't compile dxguid.c in w32api. The following error happens:
i686-pc-cygwin-gcc [...] w32api/lib/dxguid.c
In file included from [...]/winsup/w32api/lib/../include/oleauto.h:83,
from [...]/winsup/w32api/lib/../include/ole2.h:11,
from [...]/winsup/w32api/lib/../include/unknwn.h:3,
from [...]/winsup/w32api/lib/../include/objbase.h:58,
from [...]/winsup/w32api/lib/dxguid.c:28:
[...]/winsup/w32api/lib/../include/oaidl.h:110: parse error before `IUnknown'
It seems IUnknown is used before being defined. I don't know the *correct*
way to solve that problem but I have a local workaround:
Index: w32api/include/objbase.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/objbase.h,v
retrieving revision 1.7
diff -u -p -r1.7 objbase.h
--- w32api/include/objbase.h 13 Oct 2002 03:11:58 -0000 1.7
+++ w32api/include/objbase.h 8 Jan 2003 10:15:59 -0000
@@ -55,6 +55,7 @@ typedef enum tagREGCLS {
REGCLS_MULTI_SEPARATE = 2
} REGCLS;
#include <wtypes.h>
+#define COM_NO_WINDOWS_H
#include <unknwn.h>
#include <objidl.h>
Does that help?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin AT cygwin DOT com
Red Hat, Inc.
- Raw text -