>> hmm, i might be hit by my ignorance of the win32 platform, but trying to >> do so there seems to be a symbol mismatch: Qt5Core provides symbols like >> _z_deflate, but my library is looking for the symbol _deflate ... > > If the symbols in Qt are different, then the original problem does not > manifest: there is no clash.
iff all symbols are different! after digging further into it, i found out that zlib provides a naming mechanism, which prefixes a z_ to its symbols to avoid name clashes. this is done by Qt's bundled zlib. unfortunately, the prefixing is not done with z_errmsg. therefore: link with system zlib and qt's zlib, one will have a duplicate definition of z_errmsg. linking only with qt's zlib, the application (not expecting prefixed symbols) will be missing some symbols. one can argue if this is a bug or a feature ... for my use-case it is a showstopper, which i worked around by fixing qt's bundled zlib. compare: https://bugreports.qt-project.org/browse/QTBUG-35301 cheers, tim
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest