开发者

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

开发者 https://www.devze.com 2023-03-04 14:29 出处:网络
When I link my application I receive the following message: error LNK2005: _deflate_copyright already defined in QtCored.lib(deflate.obj) zlibstat.lib

When I link my application I receive the following message:

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

I'm not sure of the problem, but... I use QT and ZLib. Both are "static libraries". The problem is that the QTCore.lib contains ZLib too!

Project Qt: contains its own v开发者_JAVA技巧ersion on ZLib. Project GenericLib: use an external ZLib.lib (cannot be linked to Qt). Project main: use Qt + Generic lib.

As I say, I'm not sure that it is the problem. But, anyway, if someone has an idea to help me?

Thanks for your help.

0

精彩评论

暂无评论...
验证码 换一张
取 消