delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <4D2651A6.3070905@users.sourceforge.net> |
References: | <AANLkTi=SOo7Ko2d96Vv=oKswX3BJaqGQiS6-oL8fmodA AT mail DOT gmail DOT com> <4D2651A6 DOT 3070905 AT users DOT sourceforge DOT net> |
Date: | Thu, 6 Jan 2011 17:30:02 -0800 |
Message-ID: | <AANLkTin3gKCxNy7q9aRyDfbmu0-PH+AOsqao-G3pq8DH@mail.gmail.com> |
Subject: | Re: Mingw headers broken with _WIN32_WINNT = 0x601 (Win7) |
From: | Daniel Colascione <dan DOT colascione AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Thanks --- much appreciated. On Thu, Jan 6, 2011 at 3:35 PM, JonY <jon_y AT users DOT sourceforge DOT net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 1/7/2011 07:20, Daniel Colascione wrote: >> If we have this program >> >> #define _WIN32_WINNT 0x601 >> #include <windows.h> >> >> int main() {} >> >> >> And try to compile it like so, >> >> x86_64-w64-mingw32-gcc hello.c >> >> The compile fails with >> >> In file included from >> /usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:86:0, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from hello.c:2: >> /usr/x86_64-w64-mingw32/sys-root/mingw/include/wincrypt.h:4880:3: >> error: expected declaration specifiers or =91...=92 before =91cCriteria= =92 >> In file included from >> /usr/x86_64-w64-mingw32/sys-root/mingw/include/ole2.h:16:0, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from >> /usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:97, >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from hello.c:2: >> /usr/x86_64-w64-mingw32/sys-root/mingw/include/objbase.h:335:26: >> error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =91__attribute= __=92 before >> =91CoGetApartmentType=92 >> >> It works fine with _WIN32_WINNT =3D 0x600 (Vista) >> > > Thanks for the bug report. > > The first error seems to be due to MSDN actually flipping the type and > variable name. See > <http://msdn.microsoft.com/en-us/library/dd433797%28VS.85%29.aspx>. > > The second was due to a copy and paste typo. > > Fixed update should be coming soon. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.16 (MingW32) > > iEYEARECAAYFAk0mUaYACgkQp56AKe10wHfvBwCdEiocapwPpUlW/FFm18klD9mU > 4fMAn3Q+MvikGcuBVzq9KycR4HPoFNHV > =3D8lKN > -----END PGP SIGNATURE----- > > -- > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/ > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html > Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |