delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_NEUTRAL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F7C5470.3070805@cs.utoronto.ca> |
Date: | Wed, 04 Apr 2012 10:02:24 -0400 |
From: | Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: snprintf() with g++ -std=c++98: error: 'snprintf' was not declared in this scope |
References: | <20120404133244 DOT GA2056 AT qp9482> |
In-Reply-To: | <20120404133244.GA2056@qp9482> |
X-IsSubscribed: | yes |
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 |
On 04/04/2012 9:32 AM, Denis Excoffier wrote: > Hello, > > It could be that snprintf() is not properly declared in<stdio.h>. According to [1], it's not officially part of c++98 (???). Try gnu++98 instead. As for why it's not in c++0x, there's a problem with the macros being defined [2] that AFAIK remains unresolved; again the workaround is gnu++0x. [1] http://cygwin.com/ml/cygwin/2010-01/msg00791.html [2] http://cygwin.com/ml/cygwin/2011-08/msg00311.html Regards, Ryan -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |