Qt + Zlib => LNK2005 error: _deflate_copyright already defined in QtCored.lib (deflate.obj) zlibstat.lib

When I bundle my application, I get the following message:

LNK2005 error: _deflate_copyright already defined in QtCored.lib (deflate.obj) zlibstat.lib

I am not sure about this problem, but ... I am using QT and ZLib. Both are "static libraries". The problem is that QTCore.lib also contains ZLib!

Project Qt: contains its own version on ZLib. Project GenericLib: use external ZLib.lib (cannot be linked to Qt). Main project: use Qt + Generic lib.

Like I said, I'm not sure if this is a problem. But anyway, if anyone has an idea to help me?

Thank you for your help.

+3
source share

All Articles