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: "jakub 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 17:32:39 +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
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As C++ isn't C, obviously it g++ -std=c++11 doesn't define __STDC_VERSION__
macro, but just defines
__STRICT_ANSI__ 1
__cplusplus 201103L
Should be more than enough for cygwin headers to do the right thing.