Examples:
The problem seems to be caused by the improper definition of the LIBZIM_API and LIBZIM_PRIVATE_API macros.
- When building a DLL they need to be defined as
__declspec(dllexport)
- However when compiling client code to be linked with a DLL they must be set to
__declspec(dllimport)
See https://learn.microsoft.com/en-us/cpp/build/importing-into-an-application-using-declspec-dllimport?view=msvc-170