IPP修补ZLIB缺失符号

时间:2018-10-17 10:07:38

标签: zlib intel-ipp

我使用IPP 2016(和2019)修补了ZLIB 1.2.11,一切正常,所有编译都很好(使用MSVC)。但是链接器附带以下缺少的符号(我添加了所有必需的库,实际上我尝试从IPP添加所有库)

1>zlib_x32_debug.lib(deflate.obj) : error LNK2019: unresolved external symbol _ippsDeflateLZ77FastestGetStat_8u referenced in function _custDeflateUpdateTable
1>zlib_x32_debug.lib(deflate.obj) : error LNK2019: unresolved external symbol _ippsDeflateLZ77Fastest_8u referenced in function _lz77_encode_call
1>zlib_x32_debug.lib(deflate.obj) : error LNK2019: unresolved external symbol _ippsDeflateLZ77FastestPrecompHeader_8u referenced in function _lz77_encode_call
1>zlib_x32_debug.lib(deflate.obj) : error LNK2019: unresolved external symbol _ippsDeflateLZ77Fast_8u referenced in function _lz77_encode_call
1>zlib_x32_debug.lib(deflate.obj) : error LNK2019: unresolved external symbol _ippsDeflateLZ77Slow_8u referenced in function _lz77_encode_call
1>zlib_x32_debug.lib(deflate.obj) : error LNK2019: unresolved external symbol _ippsDeflateLZ77FastestGenHuffTable_8u referenced in function _zzdeflateGetTabLen
1>zlib_x32_debug.lib(deflate.obj) : error LNK2019: unresolved external symbol _ippsDeflateLZ77FastestGenHeader_8u referenced in function _zzdeflateGetTabLen

然后我什至试图在库中搜索这些符号,但找不到它们了...有什么主意吗?

1 个答案:

答案 0 :(得分:0)

请检查您是否将正确的IPP库位版本链接到目标文件。我的意思是,应该将32位库链接到32位目标文件。看起来像“ zlib_x32_debug.lib”一样,它是一个64位静态库(链接程序会查找函数的64位变体)。据我所知,32位函数的目标文件名类似“ blabla @ number”,而64位函数的命名为“ _blabla”。