delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/16/12:22:57

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
q=dns; s=default; b=IFn5CRH5cYXRTr0Qlq4MzSbQYjV8i56WDBXupMTR85t
dmhrdJ3KIF4hIqy2pqutdkfhg/yGUqjQwZKaVMmeuN9+YYLrXMdUczUs/qCElrkV
Tjlwx1Q2xOM8N/ZjBrG6CFMQCJGaTZ5+FA9isnfuAA3/ejXYHjepXFHYbF6xG770
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
s=default; bh=nwzpAvLIbeM8XeN5JtaSGbDHqaU=; b=TUgEXLonHTI4ZgnJa
vzLgQJhlJafQNvWKzTfiHG+mzMhU8UliQKcJRZ3kONVsNujC7x/eOGvcTGMj9xid
8a0Q0qfS92QFGNhv0C87WJ4OCkN8jMo73WCTvQjQ2vd3Wiw7dyxfYs+qI0m1fNWp
pvYfp5dLiwDVrXh5FU6PmngGr0=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <1421428942.5548.6.camel@cygwin.com>
Subject: Re: std::to_string missing under gcc 4.8.3?
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Date: Fri, 16 Jan 2015 11:22:22 -0600
In-Reply-To: <20150116104740.GA3122@calimero.vinschen.de>
References: <loom DOT 20150105T175419-513 AT post DOT gmane DOT org> <loom DOT 20150115T172713-675 AT post DOT gmane DOT org> <20150116104740 DOT GA3122 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
X-IsSubscribed: yes

On Fri, 2015-01-16 at 11:47 +0100, Corinna Vinschen wrote:
> On Jan 15 16:32, Mark Ziesemer wrote:
> > Bump / any ideas here?
> > 
> > > $ cat test.cpp
> > > #include <string>
> > > 
> > > int main()
> > > {
> > >         std::to_string(0);
> > >         return 0;
> > > }
> > > 
> > > # Reference:
> > >
> > http://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-so-g
> > > 
> > > $ g++ -std=c++1y test.cpp
> > > test.cpp: In function ‘int main()’:
> > > test.cpp:5:2: error: ‘to_string’ is not a member of ‘std’
> > >   std::to_string(0);
> > >   ^
> 
> The problem is a shortcoming of newlib.  Newlib doesn't provide most
> "long double" functions, which in turn makes newlib not C99 aware.
> This in turn enables the flag _GLIBCXX_HAVE_BROKEN_VSWPRINTF at compile

_GLIBCXX_USE_C99

> time of libstdc++ which, unfortunately, disables the entire "to_string"
> functionality, even for non-"long double" values.

The alternative is to hack libstdc++ to separate long double functions
from the rest of the C99 functionality.

> We're still hoping to get the "long double" functionality into newlib at
> one point.

That would be nice...


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