delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/16/05:48:03

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=e11vBVyMSSbxtgNmN2Pl7D7vLOtCSQf3LaeTcLnGco/lTGmLI4UHf
txF7SHPKJH35DqX81nBrmNiwyHam/vNIrHMVfcJcxsThEQ2PbyCVBAhQwurHLTDO
dej7NwJ9T82BaYzhE6JclyudBnW7wpHxymyn7mmFY7sPPnEvso6zD4=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=1TjEpWx10NIJA7JpWDkN1nIVwEo=; b=fLJ8kR27xyvw/z0ayKWZhE92gT1x
ejSQTgtzhstMBv85U/jhHr03G5SaB/vGdesw7PcybMjYIP4yftljAx1NXz6VZ3XJ
+M0LaaQOoiGBB6JTxBY6OHlLl1I7fqXvuPvsxmBEVQfZZgBLDi/vsuO5b7zC3OzO
5kYCaRSsAkTLHIg=
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=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Fri, 16 Jan 2015 11:47:40 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: std::to_string missing under gcc 4.8.3?
Message-ID: <20150116104740.GA3122@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <loom DOT 20150105T175419-513 AT post DOT gmane DOT org> <loom DOT 20150115T172713-675 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20150115T172713-675@post.gmane.org>
User-Agent: Mutt/1.5.23 (2014-03-12)

--VbJkn9YxBvnuCH5J
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jan 15 16:32, Mark Ziesemer wrote:
> Bump / any ideas here?
>=20
> > $ cat test.cpp
> > #include <string>
> >=20
> > int main()
> > {
> >         std::to_string(0);
> >         return 0;
> > }
> >=20
> > # Reference:
> >
> http://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-=
std-says-so-g
> >=20
> > $ g++ -std=3Dc++1y test.cpp
> > test.cpp: In function =E2=80=98int main()=E2=80=99:
> > test.cpp:5:2: error: =E2=80=98to_string=E2=80=99 is not a member of =E2=
=80=98std=E2=80=99
> >   std::to_string(0);
> >   ^
>=20
> I see the default gcc package in Cygwin has been bumped to 4.9.2.  Repeat=
ing
> the attempt here with 4.9.2 has shown no improvement.
>=20
> My original report was for 4.8.2 under Cygwin 64-bit.  Further testing un=
der
> clean Cygwin installs shows that neither GCC version (4.8.2 nor 4.9.2) is
> working here under either the 32-bit or 64-bit Cygwin release.

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
time of libstdc++ which, unfortunately, disables the entire "to_string"
functionality, even for non-"long double" values.

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


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--VbJkn9YxBvnuCH5J
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUuOxMAAoJEPU2Bp2uRE+g/YQP/iAU34TJUIPjuFyO51IR5ITr
0kQZRuxTSaXIF5HDQRja3Ln3IanJEyaZeAvpoeGcZLqL/OvpG65G6miMh7mCbgd5
mqNbN9JVEng3Vzj5HzTirFxlFVy2xL0Oxr/6LWmnwtm/Bpt3myZdWJEiTQZKmiOf
D4FelFhkp6Dkaj3AHSMcBxlD9vDMpyM7H9v2FzY/WWDaroXJT7enOY66OTym1glx
KDYb7rPFpdKWpAYqyyY9E/nijcnuO36ERno2EsHYxj/nqWLywwMCOTq1TI0Luq5c
6kdqtuHcAZJha0K7zbGtILivu/Zi2VPJxYUX5623GJDGQGYX4ZZVnnlFg75NxbYQ
NzQ6BUPrxjlgNvDNcGo3ElCHh1hfy9B79xpfgKsautViynE//uSTVi4RNG03Tccw
8y6AE27v/KXpUkRW/pC7dCjzrqiiHU+XBFuf7BnSmIPb7dZrQvL2A5Qkpax06iSS
T160p+aUynT7schzbjVf/nUt4ITKhBu87AY22mUkD0cYxSCC3tDZMWsAYpJfHju/
I8vqxcxrutU7/mTLZx8QmRwW+HVufikgqHKRS5PGFJ70z0trRFvJ2vlMs01MIFeJ
vf/omSAcH18XuMhxLRjNK6Ny9lNA+dRK7nVhQSWJHW5juU7VvxJRQJfs2hSUJDHt
jwqxRIRTfNOQke+Rop6k
=pMdU
-----END PGP SIGNATURE-----

--VbJkn9YxBvnuCH5J--

- Raw text -


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