Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - error LNK2005: _inflate already defined in duzsll3
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

error LNK2005: _inflate already defined in duzsll3

 Post Reply Post Reply
Author
Message
IRMark View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote IRMark Quote  Post ReplyReply Direct Link To This Post Topic: error LNK2005: _inflate already defined in duzsll3
    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!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
IRMark View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote IRMark Quote  Post ReplyReply Direct Link To This Post Posted: 17 January 2008 at 1:13pm
Hi Oleg,

Thanks a lot that worked for me!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.