Use minizip-ng as .dll #771
-
Hi all, I'm linking minizip dynamically as a third-party component into my C++ project (using LoadLibraryExW() ). I'm using VS2017 with Toolset 14.11. I started with minizip-ng version 3.0.0 which I checked out via git, used cmake 3.15.7 to create a solution and then used again VS 14.11 to build. I excluded BZip2 from solution. The VS-build succeeded, lib-files were created. I switched all included projects (liblzma, libzstd_static, minizip and zlibstatic) to dll (project properties ->General -> Target Extension and Configuration Type), this build succeeded as well. When loading the resulting minizip.dll in my project with the dependencies located in same folder, minizip lib is loaded and used. Obvsly, the dlls were also added to my projects project files. As there is an error message popping up with this 3.0.0 version when packing a large file (~7GB), I wanted to repeat above process for minizip version 4.0.4. Here I find that compiling as libs works fine, but when building as dlls, the linker throws multiple errors like: So my questions are:
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
hmmm, not the smartest question after all. Found the BUILD_SHARED_LIBS flag in the cmake file to enable creation of dlls. |
Beta Was this translation helpful? Give feedback.
hmmm, not the smartest question after all. Found the BUILD_SHARED_LIBS flag in the cmake file to enable creation of dlls.