odbccp32.lib(dllload.obj) : error LNK2019: __imp___vsnprintf,该符号在函数 _StringVPrintfWorkerA@20 中被引用

来源:互联网 发布:淘宝客厅装饰物 编辑:程序博客网 时间:2024/06/05 19:54

odbccp32.lib(dllload.obj) : error LNK2019:  __imp___vsnprintf,该符号在函数 _StringVPrintfWorkerA@20 中被引用

It is a KNOWN bug in odbccp.lib included with the PSDK 7.1. Simplest workaround, just add this code to one of your sources:

//---------------------------------------------------//#include <stdio.h>#include <wtypes.h>extern "C" int _imp___vsnprintf(    char *buffer,    size_t count,    const char *format,    va_list argptr    ){    return vsnprintf( buffer, count, format, argptr );}//---------------------------------------------------//

It resolves the missing external, by creating a wrapper with the missing name and redirecting it to the correct statically linked symbol.


阅读全文
0 0