This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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
- Subject: Re: std::to_string missing under gcc 4.8.3?
- Authentication-results: sourceware.org; auth=none
- 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>
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