just use cmake(check attached archive), i used it with msys2 and msvc
PS: for using the boost in msvc, I have handwritten the paths in CMakeList.txt, you probably have to change it according to your environment, it works just fine with msys2(use pacman)
also remember the arc is 32 bit so you have to use 32 bit environment for both msvc and msys2
in C++ you just need to inherit from ClsCompressor class and overwrite compress and decompress function
f.e:
Code:
class ClsLzhamCompressor : public ClsCompressor {
public:
template <typename... Types>
ClsLzhamCompressor(Types... Args) : ClsCompressor{Args...} {}
protected:
// overwrite this method for your compression
// see ClsCompressor defination in cls.h and use read_exactly(...) and equivalent functions for required operation
void decompress() override;
};
your main will look like:
Code:
extern "C" int __cdecl ClsMain(int operation, CLS_CALLBACK callback,
void *instance) {
return ClsLzhamCompressor(operation, callback, instance).run();
}