From: Andrew F. <and...@sb...> - 2009-07-13 16:28:45
|
>> When compiled with "g++ auto.cpp -oauto.exe -std=c++0x", I get the >> following compiler errors: >> In file included from >> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/bits/postypes.h:42, >> from >> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/iosfwd:42, >> from >> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/ios:39, >> from >> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/ostream:40, >> from >> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/iostream:40, >> from auto.cpp:1: >> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error: >> '::swprintf' has not been declared >> c:\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:166: error: >> '::vswprintf' has not been declared >i had a similar experience recently; try with "-std=gnu++0x"? >Zouzou Yes, fixed! now that you mention it, I seem to remember seeing that flag before. Thank you! |