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: <4D2651A6 DOT 3070905 AT users DOT sourceforge DOT net> Date: Thu, 6 Jan 2011 17:30:02 -0800 Message-ID: Subject: Re: Mingw headers broken with _WIN32_WINNT = 0x601 (Win7) From: Daniel Colascione To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 >> >> 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 > . > > 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