Print Page | Close Window

error LNK2005: _inflate already defined in duzsll3

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9327
Printed Date: 22 May 2025 at 4:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: error LNK2005: _inflate already defined in duzsll3
Posted By: IRMark
Subject: error LNK2005: _inflate already defined in duzsll3
Date Posted: 16 January 2008 at 5:11pm
Hi,

I am getting the following error when trying to compile a project in Visual Studio 2008:

1>ToolkitPro1121vc90SD.lib(inflate.obj) : error LNK2005: _inflate already defined in duzsll32.lib(Inflate.obj)

I've done some looking around and from what I can tell it is because both lib files are using the zlib library. What I do not know is how to fix this problem.

I do not have access to the duzsll32.lib source code so I cannot recompile the library. duzsll32.lib is used by the "DynaZIP-32 - Data Compression Toolkit for Microsoft Windows" that is used in the project.

Does anyone have any thoughts on how to get around this issue?

Thanks!



Replies:
Posted By: Oleg
Date Posted: 17 January 2008 at 2:22am
Hmm.
 
Try add in beginning of Source\GraphicLibrary\zlib\zconf.h
 
#define Z_PREFIX
 
 
it will replace all inflate to z_inflate and can fix issue. Rebuild whole toolkit after.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: IRMark
Date Posted: 17 January 2008 at 1:13pm
Hi Oleg,

Thanks a lot that worked for me!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net