错误错误LNK2001:VC ++中未解析的外部符号_deflateEnd [英] errors error LNK2001: unresolved external symbol _deflateEnd in VC++

查看:556
本文介绍了错误错误LNK2001:VC ++中未解析的外部符号_deflateEnd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用libharu-2.0.8的外部库,这是一个开源pdf库. 这个lib有一个名为libhpdf.lib的lib文件和一些头文件

I am using a external library of libharu-2.0.8, this is a open source pdf library. This lib have a lib file called libhpdf.lib and few header files

我已经编写了一个简单的代码来使用该库.我遇到以下错误.

I have written a simple code to use this library. I am getting following errors.

libhpdf.lib(hpdf_streams.obj):错误LNK2001:无法解析的外部符号_deflateEnd libhpdf.lib(hpdf_streams.obj):错误LNK2001:无法解析的外部符号_deflate libhpdf.lib(hpdf_streams.obj):错误LNK2001:无法解析的外部符号 deflateInit

libhpdf.lib(hpdf_streams.obj) : error LNK2001: unresolved external symbol _deflateEnd libhpdf.lib(hpdf_streams.obj) : error LNK2001: unresolved external symbol _deflate libhpdf.lib(hpdf_streams.obj) : error LNK2001: unresolved external symbol deflateInit

推荐答案

它们是对zlib库函数的调用,因此您可能会发现libhpdf对该库具有依赖性.

They're calls to the zlib library functions, so you'll probably find that libhpdf has a dependency on that library.

实际上,如果您访问 http://libharu.sourceforge.net/,则会看到您同时需要 zlib

In fact, if you go to http://libharu.sourceforge.net/, you'll see that you need both zlib and pnglib.

在此处引用该页面:

此外,当您要使用压缩和嵌入PNG图像的功能时,需要ZLIB和PNGLIB. (在Windows中,用于Windows的软件包中包含用于多个编译器的静态库文件.在大多数UNIX中,通常会安装这些库.)

In addition, ZLIB and PNGLIB are required when you want to use the features of compression and embedding PNG images. (In the case of Windows, static library files for several compilers are included in the package for WIndows. In the case of most of UNIX, these libraries are usually installed.)

这篇关于错误错误LNK2001:VC ++中未解析的外部符号_deflateEnd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆