r-lyeh-archived / bundle

:package: Bundle, an embeddable compression library: DEFLATE, LZMA, LZIP, BZIP2, ZPAQ, LZ4, ZSTD, BROTLI, BSC, CSC, BCM, MCM, ZMOLLY, ZLING, TANGELO, SHRINKER, CRUSH, LZJB and SHOCO streams in a ZIP file (C++03)(C++11)
zlib License
610 stars 86 forks source link

how to compile .bun and .zip #22

Closed van861205 closed 5 years ago

van861205 commented 5 years ago

Hi, I generated the bundle.dll and bundle.lib. I want to use archive.bun or archive.zip to write a file. But, the program report link error 2019. because could not find .bun & .zip in lib and dll. My IDE is VS2017.

r-lyeh commented 5 years ago

You can choose two different fixes.

  1. Add following line in any of your source files: #pragma comment(lib, "bundle.lib"). Then configure your IDE to search the bundle.lib file, in your project settings (similar to this image): image

  2. Add bundle.h and bundle.cpp files to your solution.

Hope it helps.