swprintf和vswprintf没有声明? [英] swprintf and vswprintf not declared?

查看:1177
本文介绍了swprintf和vswprintf没有声明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用MinGW在Windows上编译Botan,并且在编译期间收到以下错误:

  c: \\ qt\2010.04\mingw\bin\ ../ lib / gcc / mingw32 / 4.4.0 / include / c ++ / cwchar:159:错误:
':: swprintf'尚未声明
c:\qt\2010.04\mingw\bin\ ../lib/gcc/mingw32/ 4.4.0 / include / c ++ / cwchar:166:error:
':: vswprintf'尚未声明

为什么不声明swprintf和vswprintf,

   #undef __STRICT_ANSI__ 

,包括stdio.h


I am trying to compile Botan on Windows with MinGW, and am receiving the following error during compilation:

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

Why are swprintf and vswprintf not declared, and how can I fix this?

解决方案

Try putting in

#undef __STRICT_ANSI__ 

before including stdio.h

这篇关于swprintf和vswprintf没有声明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆