This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mingw headers broken with _WIN32_WINNT = 0x601 (Win7)


-----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,
>                  from hello.c:2:
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/wincrypt.h:4880:3:
> error: expected declaration specifiers or ‘...’ before ‘cCriteria’
> In file included from
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/ole2.h:16:0,
>                  from
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:97,
>                  from hello.c:2:
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/objbase.h:335:26:
> error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘CoGetApartmentType’
> 
> It works fine with _WIN32_WINNT = 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
=8lKN
-----END PGP SIGNATURE-----

Attachment: 0xED74C077.asc
Description: application/pgp-keys

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]