X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: mjD.OBqswBAPbVUxYJaYPvc61jLEnpq8VnBwJGdbEJOPA9xw Message-ID: <4ED4CBDA.1090303@sbcglobal.net> Date: Tue, 29 Nov 2011 12:11:06 +0000 From: Greg Chicares User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How to get std::strtoull (unsigned long long)? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 2011-11-29 10:22Z, Csaba Raduly wrote: > On Tue, Nov 29, 2011 at 11:04 AM, Markus Selve wrote: >> >> $ g++ -Wall -o tt tt.cpp >> tt.cpp: In function 'int main(int, char**)': >> tt.cpp:7:9: error: 'strtoull' is not a member of 'std' The default C++ dialect is based on the 1998 standard, which lacks strtoull() because that function first appeared in C99. > Alas, cstdlib is missing the necessary using directive: [...] > using ::strtod; > using ::strtol; > using ::strtoul; Adding a using-declaration for ::strtoull would be a reasonable extension, as long as '-std=c++98' is not specified. -- 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