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: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?


On 8/18/2011 13:44, Frédéric Bron wrote:
> Using cygwin 1.7.9(0.237/5/3) 2011-03-29 10:10.
> 
> The following program:
> 
> #include <iostream>
> int main() {
>         std::cout<<__MINGW32_MAJOR_VERSION<<'.'<<__MINGW32_MINOR_VERSION<<'\n';
>         return 0;
> }
> 
> outputs:
> - 3.18 when built with i686-pc-mingw32-g++
> - 3.11 when built with i686-w64-mingw32-g++
> why?
> I have mingw-runtime version 3.18 installed. Is it used only by i686-pc-mingw32?
> 
> I found that:
> $ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-pc-mingw32/
> /usr/i686-pc-mingw32/sys-root/mingw/include/_mingw.h:#define
> __MINGW32_MINOR_VERSION     18
> and
> $ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-w64-mingw32/
> /usr/i686-w64-mingw32/sys-root/mingw/include/_mingw_mac.h:#define
> __MINGW32_MINOR_VERSION 11
> 
> This seems to be one of the reasons that prevents me to use boost on cygwin 1.7.
> 
> Regards,
> 
> Frédéric
> 

Just bump it up and see if there are any issues, the mingw-w64 toolchain
uses its own header set and the numbers don't always reflect mingw.org
releases, since the macros in there are mainly for compatibility.

You want to check instead for __MINGW64_VERSION_MAJOR on mingw-w64.

Attachment: signature.asc
Description: OpenPGP digital signature


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