[Bug libstdc++/40278] -std=c++0x is error, but -std=gnu++0x is OK!
loaden at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu May 28 00:28:00 GMT 2009
------- Comment #1 from loaden at gmail dot com 2009-05-28 00:28 -------
if use -std=c++0x, will error:
d:\ycdeng\qpdev\bin\..\lib\gcc\mingw32\4.4.1\include\c++\cwchar|159|error:
'::swprintf' has not been declared|
d:\ycdeng\qpdev\bin\..\lib\gcc\mingw32\4.4.1\include\c++\cwchar|166|error:
'::vswprintf' has not been declared|
||=== Build finished: 2 errors, 0 warnings ===|
if want fix, need #undef __STRICT_ANSI__, see: stdio.h
or option is: -U__STRICT_ANSI__
but when change to: -std=gnu++0x, it's OK!
--
loaden at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |loaden at gmail dot com
Summary|-std=c++0x is error, but ;- |-std=c++0x is error, but -
|std=gnu++0x |std=gnu++0x is OK!
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40278
More information about the Gcc-bugs
mailing list