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,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4E4CE854.2020706@users.sourceforge.net> |
Date: | Thu, 18 Aug 2011 18:24:20 +0800 |
From: | JonY <jon_y AT users DOT sourceforge DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11? |
References: | <CAPw2spjcTmTtyA2fMLHuoq87kLFBPC1ywfhcY7VTtsjCZk0hzg AT mail DOT gmail DOT com> |
In-Reply-To: | <CAPw2spjcTmTtyA2fMLHuoq87kLFBPC1ywfhcY7VTtsjCZk0hzg@mail.gmail.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
--------------enigB5BA50CB17AC74B789F4040C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 8/18/2011 13:44, Fr=E9d=E9ric Bron wrote: > Using cygwin 1.7.9(0.237/5/3) 2011-03-29 10:10. >=20 > The following program: >=20 > #include <iostream> > int main() { > std::cout<<__MINGW32_MAJOR_VERSION<<'.'<<__MINGW32_MINOR_VERSION<= <'\n'; > return 0; > } >=20 > 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-m= ingw32? >=20 > 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 >=20 > This seems to be one of the reasons that prevents me to use boost on cygw= in 1.7. >=20 > Regards, >=20 > Fr=E9d=E9ric >=20 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. --------------enigB5BA50CB17AC74B789F4040C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) iEYEARECAAYFAk5M6FkACgkQp56AKe10wHe2zgCbBiL1PT2aTPDhNOXmrOAgAgtC NlYAnjo10a6r0JODienkrLHKYoRK/F1j =ezs0 -----END PGP SIGNATURE----- --------------enigB5BA50CB17AC74B789F4040C--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |