我正在尝试使用 MinGW 在 Windows 上编译 Botan,但在编译期间收到以下错误:
c:\qt\2010.04\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error:
'::swprintf' has not been declared
c:\qt\2010.04\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:166: error:
'::vswprintf' has not been declared
为什么没有声明 swprintf 和 vswprintf,我该如何解决这个问题?
最佳答案
尝试放入
#undef __STRICT_ANSI__
在包含 stdio.h 之前
关于c++ - swprintf 和 vswprintf 未声明?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3445312/