Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
5.15.10
Description
Using zlib v1.2.12 in a Qt project results in a collision with the bundled zlib:
Qt5Core.lib(crc32.obj) : error LNK2005: crc32_combine_gen already defined in zlibstatic.lib(crc32.obj) Qt5Core.lib(crc32.obj) : error LNK2005: crc32_combine_gen64 already defined in zlibstatic.lib(crc32.obj) Qt5Core.lib(crc32.obj) : error LNK2005: crc32_combine_op already defined in zlibstatic.lib(crc32.obj)
Example:
#include <QCoreApplication> #include <zlib.h> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); crc32_combine_gen(0); return a.exec(); }
This problem seems to be introduced by the commit 8975b7c2b0f9bbe45fa3e3f68fea075a9ce4d525 and reverting it fixed the problem.
Attachments
Issue Links
- is duplicated by
-
QTBUG-106670 Qt 6.3.2 compilation issue
-
- Closed
-