Registry / utility / bit7z
library4.0.11vcpkgunverified

A C++ static library offering a clean and simple interface to the 7-zip shared libraries.

vcpkg install bit7z
INSTALL
IMPORT
SIG · BIT7Z
B
bit7z
utilitycppv4.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bit7z/bit7z.hpp
#include <bit7z/bit7z.hpp>

Create a 7z archive

#include <bit7z/bit7z.hpp> #include <iostream> int main() { try { bit7z::Bit7zLibrary lib{"7z.dll"}; bit7z::BitArchiveWriter writer{lib, bit7z::BitFormat::SevenZip}; writer.addFile("test.txt"); writer.compressTo("archive.7z"); std::cout << "Archive created" << std::endl; } catch (const bit7z::BitException& e) { std::cerr << e.what() << std::endl; } return 0; }
Debug
Known issues
gotchaRequires 7-zip shared library (7z.dll/so) at runtime
fix
Ensure the 7-zip shared library is available in the system path or alongside the executable
affects: all
Upgrade
Version history
4.0.11latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

bit7z — pip install bit7z · libregistry