用于C / C ++的可移植zip库(不是应用程序) [英] portable zip library for C/C++ (not an application)

查看:139
本文介绍了用于C / C ++的可移植zip库(不是应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在Windows,Linux / Unix和MacOS的多个版本上从非gui C / C ++应用程序压缩文件。

I want to be able to zip files from my non-gui C/C++ application, on several versions of Windows, Linux/Unix, and MacOS.

用户将使用Eclipse + makefile或VisualStudio编译和运行此应用程序。我不希望用户必须单独安装,或者让我的makefile安装可执行文件。

The user will compile and run using this app using Eclipse + makefile or VisualStudio. I don't want the user to have to install something separately, or have my makefile install executables.

希望开源。我已经在查看Zip 3.0...

Prefer open-source. I'm already looking at "Zip 3.0"...

推荐答案

查看 Libarchive 。我花了很多时间寻找一个跨平台和LGPL许可库,具有方便的界面。这是我见过的最好的。非常容易和强大的工具。最初设计用于类Unix系统,但也有 Windows版本

Take a look at Libarchive. I spent a lot of time seeking for a cross-platform and LGPL licensed library with convenient interface. This the best of all I've seen. Very easy and powerful tool. Originally designed for Unix-like systems but there's also the Windows version.

这篇关于用于C / C ++的可移植zip库(不是应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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