加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c – swprintf和vswprintf未声明?

发布时间:2020-12-16 05:43:10 所属栏目:百科 来源:网络整理
导读:我正在使用MinGW在 Windows上编译Botan,并且在编译期间收到以下错误: c:qt2010.04mingwbin../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error:'::swprintf' has not been declaredc:qt2010.04mingwbin../lib/gcc/mingw32/4.4.0/include/c++
我正在使用MinGW在 Windows上编译Botan,并且在编译期间收到以下错误:
c:qt2010.04mingwbin../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error:
'::swprintf' has not been declared
c:qt2010.04mingwbin../lib/gcc/mingw32/4.4.0/include/c++/cwchar:166: error:
'::vswprintf' has not been declared

为什么没有声明swprintf和vswprintf,我该如何解决?

解决方法

尝试放入
#undef __STRICT_ANSI__

之前包括stdio.h

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读