我得到一个奇怪的错误错误LNK2001:未解决的外部符号_deflateEnd在VC ++中请帮助 [英] I am getting a Strange errors error LNK2001: unresolved external symbol _deflateEnd in VC++ please help

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

问题描述

我使用libharu-2.0.8的外部库,这是一个开源的pdf库。
这个lib有一个lib文件libhpdf.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 pnglib

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:未解决的外部符号_deflateEnd在VC ++中请帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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