gpt4 book ai didi

c++ - swprintf 和 vswprintf 未声明?

转载 作者:可可西里 更新时间:2023-11-01 12:41:06 26 4
gpt4 key购买 nike

我正在尝试使用 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com