一、问题
当编译运行C++连接Redis时,出现错误Win32_Interop_d.lib(Win32_ANSI.obj) : error LNK2019: 无法解析的外部符号 __imp__wsprintfW,该符号在函数 _InterpretEscSeq 中被引用,如下
二、解决方法
用VS打开Win32_Interop项目,修改Win32_ANSI.c,将wsprintf修改为swprintf,重新编译Win32_Interop.lib放入项目
一、问题
当编译运行C++连接Redis时,出现错误Win32_Interop_d.lib(Win32_ANSI.obj) : error LNK2019: 无法解析的外部符号 __imp__wsprintfW,该符号在函数 _InterpretEscSeq 中被引用,如下
二、解决方法
用VS打开Win32_Interop项目,修改Win32_ANSI.c,将wsprintf修改为swprintf,重新编译Win32_Interop.lib放入项目
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。