C++问题--error LNK2019: 无法解析的外部符号 __imp__wsprintfW

一、问题

当编译运行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放入项目

 

posted on 2019-11-14 10:51  Anlia  阅读(1669)  评论(0编辑  收藏  举报

导航