This is the mail archive of the
mailing list for the Cygwin project.
Re: Link error with static version of zlib?
Thank you very much for taking the time to reply to my question!
I then copied the file libminizip.a contained within to
I also copied the file libz.a contained within to
making sure to rename the original file to libz.a.old so I can undo,
The rationale for doing this is that those two files are the only two
dependencies outside of the Windows system dlls the project uses.
However, at the link, there was still an error:
undefined reference to `BZ2_bzDecompress'
undefined reference to `BZ2_bzDecompressEnd'
undefined reference to `BZ2_bzDecompressInit'
reference to `__imp_pthread_getspecific'
reference to `__imp_pthread_key_create'
reference to `__imp_pthread_key_delete'
reference to `__imp_pthread_mutex_destroy'
reference to `__imp_pthread_mutex_init'
reference to `__imp_pthread_mutex_lock'
reference to `__imp_pthread_mutex_unlock'
reference to `__imp_pthread_setspecific'
I've tried linking the thread library, but it does not seem to make a
I'm not sure how to proceed.
On Wed, Jul 19, 2017 at 9:41 PM, Steven Penny <email@example.com> wrote:
> On Wed, 19 Jul 2017 11:07:42, J wrote:
>> If I am not mistaken, when selecting the package mingw64-x86_64-zlib
>> with the installer, it installs the library, which has been compiled
>> as both a DLL and a static library.
>> But it appears that the minizip library included within the zlib
>> package is only present in DLL form.
> 1. mingw64-x86_64-zlib package does not include minizip
> $ sage listfiles mingw64-x86_64-zlib
> 2. mingw64-x86_64-zlib doesnt even pull in the minizip package:
> $ sage-cost.sh mingw64-x86_64-zlib
> 73,920 desktop-file-utils
> 52,608 gamin
> 478,080 gsettings-desktop-schemas
> 11,592 libfam0
> 2,885,964 libglib2.0_0
> 693,532 libxml2
> 56,616 mingw64-x86_64-pkg-config
> 109,828 mingw64-x86_64-zlib
> 56,536 pkg-config
> 299,232 shared-mime-info
> 3. The package you are looking for is mingw64-x86_64-minizip, which doesnt
> pulled in from anything:
> $ sage rdepends mingw64-x86_64-minizip
> you have to manually install it.
> 4. You are rigth about the DLL:
> $ sage listfiles mingw64-x86_64-minizip
> If you want the static version, you need to build it yourself, or post issue
> Good luck on this though:
> - http://github.com/cygwinports/mingw64-x86_64-lua/issues/1
> - http://github.com/cygwinports/mingw64-x86_64-nghttp2/issues/1
> - http://github.com/cygwinports/mingw64-x86_64-pcre/issues/1
> - http://github.com/cygwinports/mingw64-x86_64-expat/issues/1
> Alternatively you can get it from here:
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple