I'm trying to use new C++0x features in Qt Creator under Windows (Qt Creator 2.0.1).
I read the thread Configuring the GCC compiler switches in Qt, Qt Creator, and QMake and added QMAKE_CXXFLAGS += -std=c++0x
to .pro file.
After it Qt Creator gives me very strange errors on this simple code:
#include <memory>
int main()
{
}
Compiler errors:
'::swprintf' has not been declared
'::vswprintf' has not been declared
I try to compile my code from the command line with command g++ test.cpp --std=c++0x
and get same error.
So what's wrong with Qt MinGW compiler? Is it possible to use C++0x features in Qt Creator?
using ::swprintf;
andusing ::vswprintf;
in the library header file -- see the patch mentioned in ssmir's answer. – TonyK