delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/18/12:58:33

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
X-Spam-Check-By: sourceware.org
Subject: Re: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
To: cygwin <cygwin AT cygwin DOT com>
Date: Thu, 18 Aug 2011 11:56:23 -0500
In-Reply-To: <CAPw2spjcTmTtyA2fMLHuoq87kLFBPC1ywfhcY7VTtsjCZk0hzg@mail.gmail.com>
References: <CAPw2spjcTmTtyA2fMLHuoq87kLFBPC1ywfhcY7VTtsjCZk0hzg AT mail DOT gmail DOT com>
Message-ID: <1313686586.4472.2.camel@YAAKOV04>
Mime-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Thu, 2011-08-18 at 07:44 +0200, 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.

If you are using a mingw* compiler, then you're not "using" Boost on
Cygwin.  If you really want to build with Boost on Cygwin, install
libboost-devel and its dependencies.


Yaakov



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019