delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2003/01/08/06:35:27

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com, Danny Smith <danny_r_smith_2001 AT yahoo DOT co DOT nz>
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 <danny_r_smith_2001 AT yahoo DOT co DOT nz>
Mime-Version: 1.0
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019