From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10939 invoked by alias); 13 Sep 2012 17:31:44 -0000 Received: (qmail 10926 invoked by uid 22791); 13 Sep 2012 17:31:43 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 Sep 2012 17:31:29 +0000 From: "eXpl0it3r@my-gate.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/52015] std::to_string does not work under MinGW Date: Thu, 13 Sep 2012 17:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eXpl0it3r@my-gate.net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-09/txt/msg01038.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52015 Lukas D=C3=BCrrenberger changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eXpl0it3r@my-gate.net --- Comment #8 from Lukas D=C3=BCrrenberger 2012-09= -13 17:31:13 UTC --- As mentioned before this bug is still active in GCC 4.7.0. The issue got additionally mentioned in the MinGW bug tracker: https://sourceforge.net/tracker/?func=3Ddetail&atid=3D102435&aid=3D3413241&= group_id=3D2435 There's a possible patch for it at: http://tehsausage.com/mingw-to-string Since it's not clear how long that website will be up, I'll post it here ag= ain: ______________________________________ 24 August 2012, 11:16 UTC This patch enables the following list of C++11 functions and templates in t= he std namespace: stoi, stol, stoul, stoll, stof, stod, stold, to_string, to_wstring This assumes you are using the official MinGW distribution. If you are applying this patch to a version of MinGW GCC later than 4.7, you should examine and apply the patches rather than using the zip file. * Download mingw-to-string-gcc47.zip which contains three patched header fi= les. (Original patches: wchar.h, stdio.h, os_defines.h) * Copy wchar.h and stdio.h from the include directory in the zip file to the following directory (overwrite): C:\mingw\include (replace C:\mingw\ with the appropriate directory) * Copy os_defines.h to the following directory (overwrite): C:\mingw\lib\gcc\mingw32\4.7.0\include\c++\mingw32\bits (replace C:\mingw\ with the appropriate directory) (replace 4.7.0 with the correct version number) Author: Julian Smythe