X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org MIME-Version: 1.0 From: =?ISO-8859-1?Q?Fr=E9d=E9ric_Bron?= Date: Thu, 18 Aug 2011 07:44:00 +0200 Message-ID: Subject: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11? To: cygwin Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p7I5j1KO030539 Using cygwin 1.7.9(0.237/5/3) 2011-03-29 10:10. The following program: #include 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 -- 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