[英]Qt Creator compilation error “::swprintf and ::vswprintf has not been declared”
[英]swprintf and vswprintf not declared?
我试图用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之前
使用MinGW(Qt 2010.05)编译Grantlee有同样的问题。
我如何编译:
评论以下内容(第160行)
using :: swprintf;
using :: vswprintf;
运行时make确保未设置-ansi标志。 如果正在使用此标志,则将其删除,问题将得到解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.