用于压缩的静态库 [英] static library for zipping

查看:79
本文介绍了用于压缩的静态库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在搜索静态库,用于压缩图片(.jpg)。

我还需要加密.zip文件。



我使用Microsoft Visual Studio 2010.



我找到了info-zip,得到了所有.c和.h文件,但这会创建一个.exe文件,

我想要一个lib文件...



或者我可以用这些文件创建一个静态库吗?



这真的没有静态库吗? (我搜索了> 2houres)





thx任何帮助: - )

Hi together,

I am searching a static library for zipping pictures (.jpg).
I also have to encrypt the .zip file.

I use Microsoft Visual Studio 2010.

I found info-zip, got all .c and .h files, but this creates an .exe- File,
I want a lib-file...

Or can i create a static library with these files?

Is there really no static library for this? (I searched > 2houres)


thx for any help:-)

推荐答案

在CP上试试



Zip Utils - 干净,优雅,简单,C ++ / Win32 [ ^ ]

你只需将它合并到你的源代码中 - 真的与LIB不同你需要至少一个包含导出函数的头文件。



无论如何,可以从编译exe的项目中创建一个LIB:只需确保它存在一个.def文件,该文件导出所需的函数并在VisualStudio中更改项目类型(或参考链接器的文档)。
Try this on CP

Zip Utils - clean, elegant, simple, C++/Win32[^]
You simply merge it into your source code - really not different form a LIB for which you need at least a header file with the exported functions.

Anyway it is possible to create a LIB from a project that compiles an exe: just be sure it exist a .def file that exports the desired functions and change the project type in VisualStudio (or refer to the documentation of your linker).


这篇关于用于压缩的静态库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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