This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60498] error: 'snprintf' was not declared in this scope
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Mar 2014 18:47:43 +0000
- Subject: [Bug c++/60498] error: 'snprintf' was not declared in this scope
- Auto-submitted: auto-generated
- References: <bug-60498-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60498
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Definitely a Cygwin bug, their header should test:
#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus
>= 201103L)
That way the functions will be defined for any -std=gnuNN mode, for C99, and
for C++11, which would be correct.