From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10630 invoked by alias); 27 Feb 2014 07:21:18 -0000 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 Received: (qmail 10588 invoked by uid 48); 27 Feb 2014 07:21:15 -0000 From: "roman.vasiliev at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/52015] std::to_string does not work under MinGW Date: Thu, 27 Feb 2014 07:21: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-Version: 4.6.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: roman.vasiliev at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg02681.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52015 --- Comment #40 from Roman --- (In reply to Jonathan Wakely from comment #36) > (In reply to Roman from comment #35) > > Tried to apply proposed patch for MinGW 4.8.1 and received no positive > > effect. Compiler tells about error : 'stoi' was not declared in this scope. > > Have any Idea how to fix it? > > Not enough information to be useful. > > Did you even use -std=c++11 ? Yes, shure. > > Noone here can debug your modified sources, you'll have to look into what is > or isn't defined on your system after the patch. Try looking at the > preprocessed source, for example. I'm not familiar with such a matter. Attached files are: stoi.cpp is initial code stoi_prep.cpp is result of g++ stoi.cpp -E > stoi_prep.cpp stoi_prep11.cpp is result of g++ stoi.cpp -E -std=c++11 > stoi_prep11.cpp