Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Date: Wed, 8 Jan 2003 11:22:07 +0100 From: Corinna Vinschen To: cygwin-developers AT cygwin DOT com, Danny Smith Subject: Compile time error in w32lib/lib/dxguid.o Message-ID: <20030108112207.B23921@cygbert.vinschen.de> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com, Danny Smith Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.22.1i 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 +#define COM_NO_WINDOWS_H #include #include Does that help? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc.